Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 332 for _builtin (0.22 sec)

  1. src/cmd/internal/goobj/mkbuiltin.go

    	if err != nil {
    		log.Fatal(err)
    	}
    }
    
    func mkbuiltin(w io.Writer) {
    	pkg := "runtime"
    	fset := token.NewFileSet()
    	path := filepath.Join("..", "..", "compile", "internal", "typecheck", "_builtin", "runtime.go")
    	f, err := parser.ParseFile(fset, path, nil, 0)
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	decls := make(map[string]bool)
    
    	fmt.Fprintf(w, "var builtins = [...]struct{ name string; abi int }{\n")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/typecheck/mkbuiltin.go

    //go:build ignore
    
    // Generate builtin.go from builtin/runtime.go.
    
    package main
    
    import (
    	"bytes"
    	"flag"
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/token"
    	"io"
    	"log"
    	"os"
    	"path/filepath"
    	"strconv"
    	"strings"
    )
    
    var stdout = flag.Bool("stdout", false, "write to stdout instead of builtin.go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jan 26 21:56:49 UTC 2023
    - 6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/syms.go

    package typecheck
    
    import (
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/types"
    	"cmd/internal/obj"
    )
    
    // LookupRuntime returns a function or variable declared in
    // _builtin/runtime.go. If types_ is non-empty, successive occurrences
    // of the "any" placeholder type will be substituted.
    func LookupRuntime(name string, types_ ...*types.Type) *ir.Name {
    	s := ir.Pkgs.Runtime.Lookup(name)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:13 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  4. src/cmd/internal/goobj/builtin.go

    package goobj
    
    import "internal/buildcfg"
    
    // Builtin (compiler-generated) function references appear
    // frequently. We assign special indices for them, so they
    // don't need to be referenced by name.
    
    // NBuiltin returns the number of listed builtin
    // symbols.
    func NBuiltin() int {
    	return len(builtins)
    }
    
    // BuiltinName returns the name and ABI of the i-th
    // builtin symbol.
    func BuiltinName(i int) (string, int) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 22 13:50:24 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  5. test/typeparam/builtins.go

    // license that can be found in the LICENSE file.
    
    // This file tests built-in calls on generic types.
    
    // derived and expanded from cmd/compile/internal/types2/testdata/check/builtins.go2
    
    package builtins
    
    // close
    
    type C0 interface{ int }
    type C1 interface{ chan int }
    type C2 interface{ chan int | <-chan int }
    type C3 interface{ chan int | chan float32 }
    type C4 interface{ chan int | chan<- int }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. src/go/types/builtins.go

    // Source: ../../cmd/compile/internal/types2/builtins.go
    
    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file implements typechecking of builtin function calls.
    
    package types
    
    import (
    	"go/ast"
    	"go/constant"
    	"go/token"
    	. "internal/types/errors"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/typecheck/builtin.go

    // Code generated by mkbuiltin.go. DO NOT EDIT.
    
    package typecheck
    
    import (
    	"cmd/compile/internal/types"
    	"cmd/internal/src"
    )
    
    // Not inlining this function removes a significant chunk of init code.
    //
    //go:noinline
    func newSig(params, results []*types.Field) *types.Type {
    	return types.NewSignature(nil, params, results)
    }
    
    func params(tlist ...*types.Type) []*types.Field {
    	flist := make([]*types.Field, len(tlist))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 21 21:08:03 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/builtins.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // This file implements typechecking of builtin function calls.
    
    package types2
    
    import (
    	"cmd/compile/internal/syntax"
    	"go/constant"
    	"go/token"
    	. "internal/types/errors"
    )
    
    // builtin type-checks a call to the built-in specified by id and
    // reports whether the call is valid, with *x holding the result;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/authorization/authorizerfactory/builtin.go

    Jordan Liggitt <******@****.***> 1569333992 -0400
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Sep 24 15:14:54 UTC 2019
    - 3.2K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/typecheck/builtin_test.go

    	testenv.MustHaveGoRun(t)
    	t.Parallel()
    
    	old, err := os.ReadFile("builtin.go")
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	new, err := testenv.Command(t, testenv.GoToolPath(t), "run", "mkbuiltin.go", "-stdout").Output()
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if !bytes.Equal(old, new) {
    		t.Fatal("builtin.go out of date; run mkbuiltin.go")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 20:19:15 UTC 2022
    - 608 bytes
    - Viewed (0)
Back to top