Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 130 for exports (1.1 sec)

  1. misc/wasm/wasm_exec.js

    						const n = this.mem.getInt32(sp + 24, true);
    						fs.writeSync(fd, new Uint8Array(this._inst.exports.mem.buffer, p, n));
    					},
    
    					// func resetMemoryDataView()
    					"runtime.resetMemoryDataView": (sp) => {
    						sp >>>= 0;
    						this.mem = new DataView(this._inst.exports.mem.buffer);
    					},
    
    					// func nanotime1() int64
    					"runtime.nanotime1": (sp) => {
    						sp >>>= 0;
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 22 17:47:47 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  2. src/cmd/link/internal/wasm/asm.go

    	case "js":
    		writeUleb128(ctxt.Out, 4) // number of exports
    		for _, name := range []string{"run", "resume", "getsp"} {
    			s := ldr.Lookup("wasm_export_"+name, 0)
    			idx := uint32(lenHostImports) + uint32(ldr.SymValue(s)>>16) - funcValueOffset
    			writeName(ctxt.Out, name)           // inst.exports.run/resume/getsp in wasm_exec.js
    			ctxt.Out.WriteByte(0x00)            // func export
    			writeUleb128(ctxt.Out, uint64(idx)) // funcidx
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:17:48 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  3. src/cmd/link/internal/ld/deadcode.go

    		names = append(names, objabi.PathToPrefix(*flagPluginPath)+"..inittask", objabi.PathToPrefix(*flagPluginPath)+".main", "go:plugin.tabs")
    
    		// We don't keep the go.plugin.exports symbol,
    		// but we do keep the symbols it refers to.
    		exportsIdx := d.ldr.Lookup("go:plugin.exports", 0)
    		if exportsIdx != 0 {
    			relocs := d.ldr.Relocs(exportsIdx)
    			for i := 0; i < relocs.Count(); i++ {
    				d.mark(relocs.At(i).Sym(), 0)
    			}
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  4. src/cmd/link/internal/ld/go.go

    				nerrors++
    				return
    			}
    
    			// Mark exported symbols and also add them to
    			// the lists used for roots in the deadcode pass.
    			if f[0] == "cgo_export_static" {
    				if ctxt.LinkMode == LinkExternal && !l.AttrCgoExportStatic(s) {
    					// Static cgo exports appear
    					// in the exported symbol table.
    					ctxt.dynexp = append(ctxt.dynexp, s)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 16:48:30 UTC 2023
    - 11.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssagen/abi.go

    // wrapper functions where necessary.
    func (s *SymABIs) GenABIWrappers() {
    	// For cgo exported symbols, we tell the linker to export the
    	// definition ABI to C. That also means that we don't want to
    	// create ABI wrappers even if there's a linkname.
    	//
    	// TODO(austin): Maybe we want to create the ABI wrappers, but
    	// ensure the linker exports the right ABI definition under
    	// the unmangled name?
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/issues_test.go

    	}
    }
    
    func TestIssue59831(t *testing.T) {
    	// Package a exports a type S with an unexported method m;
    	// the tests check the error messages when m is not found.
    	const asrc = `package a; type S struct{}; func (S) m() {}`
    	apkg := mustTypecheck(asrc, nil, nil)
    
    	// Package b exports a type S with an exported method m;
    	// the tests check the error messages when M is not found.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/testx.go

    }
    
    //export exportint32
    func exportint32() int32 {
    	return 0
    }
    
    //export exportuint32
    func exportuint32() uint32 {
    	return 0
    }
    
    //export exportint64
    func exportint64() int64 {
    	return 0
    }
    
    //export exportuint64
    func exportuint64() uint64 {
    	return 0
    }
    
    //export exportfloat32
    func exportfloat32() float32 {
    	return 0
    }
    
    //export exportfloat64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 17 21:53:11 UTC 2023
    - 10.6K bytes
    - Viewed (0)
  8. src/cmd/link/internal/ld/pe.go

    		if !ldr.AttrReachable(s) || !ldr.AttrCgoExportDynamic(s) {
    			continue
    		}
    		if len(dexport)+1 > cap(dexport) {
    			ctxt.Errorf(s, "pe dynexport table is full")
    			errorexit()
    		}
    
    		dexport = append(dexport, s)
    	}
    
    	sort.Slice(dexport, func(i, j int) bool { return ldr.SymExtname(dexport[i]) < ldr.SymExtname(dexport[j]) })
    }
    
    func addexports(ctxt *Link) {
    	ldr := ctxt.loader
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 09 19:01:27 UTC 2023
    - 48.8K bytes
    - Viewed (0)
  9. src/cmd/link/link_test.go

    	testenv.MustHaveGoBuild(t)
    	testenv.MustHaveCGO(t) // this test requires -linkmode=external
    	t.Parallel()
    
    	// test source code, with some cgo exports
    	testSrc := `
    package main
    import "C"
    //export F1
    func F1() {}
    //export F2
    func F2() {}
    //export F3
    func F3() {}
    func main() {}
    `
    
    	tmpdir := t.TempDir()
    	src := filepath.Join(tmpdir, "x.go")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 20:26:02 UTC 2024
    - 43.5K bytes
    - Viewed (0)
  10. src/cmd/cgo/internal/testcshared/cshared_test.go

    		t.Fatalf("binary.Read failed: %v", err)
    	}
    
    	// Only the two exported functions and _cgo_dummy_export should be exported
    	expectedNumber := uint32(3)
    
    	if exportAllSymbols {
    		if e.NumberOfFunctions <= expectedNumber {
    			t.Fatalf("missing exported functions: %v", e.NumberOfFunctions)
    		}
    		if e.NumberOfNames <= expectedNumber {
    			t.Fatalf("missing exported names: %v", e.NumberOfNames)
    		}
    	} else {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:19:50 UTC 2023
    - 21K bytes
    - Viewed (0)
Back to top