go/src/cmd/internal/obj
Richard Musiol 6dd70fc5e3 all: add support for synchronous callbacks to js/wasm
With this change, callbacks returned by syscall/js.NewCallback
get executed synchronously. This is necessary for the APIs of
many JavaScript libraries.

A callback triggered during a call from Go to JavaScript gets executed
on the same goroutine. A callback triggered by JavaScript's event loop
gets executed on an extra goroutine.

Fixes #26045
Fixes #27441

Change-Id: I591b9e85ab851cef0c746c18eba95fb02ea9e85b
Reviewed-on: https://go-review.googlesource.com/c/142004
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Run-TryBot: Cherry Zhang <cherryyz@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2018-11-10 11:57:17 +00:00
..
arm cmd/internal/obj/arm: delete unnecessary code 2018-10-03 01:05:56 +00:00
arm64 cmd/internal/obj/arm64: encode large constants into MOVZ/MOVN and MOVK instructions 2018-11-07 16:12:02 +00:00
mips cmd/internal/obj: follow convention for generated code comment 2018-07-03 16:14:43 +00:00
ppc64 cmd/asm/internal,cmd/internal/obj/ppc64: add alignment directive to asm for ppc64x 2018-10-23 20:37:29 +00:00
s390x cmd/asm: add s390x VMSLG instruction variants 2018-10-29 09:54:51 +00:00
wasm all: add support for synchronous callbacks to js/wasm 2018-11-10 11:57:17 +00:00
x86 syscall: implement syscalls on Darwin using libSystem 2018-11-07 20:27:01 +00:00
addrtype_string.go cmd: re-generate all stringer files 2018-03-10 21:20:50 +00:00
bootstrap.go cmd/internal/obj: add SortSlice 2017-04-11 20:29:04 +00:00
data.go cmd/compile: use slice extension idiom in LSym.Grow 2018-05-06 14:28:47 +00:00
go.go cmd/internal/obj: change Prog.From3 to RestArgs ([]Addr) 2017-09-15 21:05:03 +00:00
inl.go compiler,linker: support for DWARF inlined instances 2017-11-30 14:39:19 +00:00
ld.go cmd/internal/obj: un-embed FuncInfo field in LSym 2017-04-18 17:29:50 +00:00
line.go cmd/internal/objabi: extract shared functionality from obj 2017-04-19 00:00:09 +00:00
line_test.go cmd/compile: track line directives w/ column information 2018-02-26 18:32:03 +00:00
link.go cmd/compile: avoid duplicate GC bitmap symbols 2018-11-03 15:12:34 +00:00
objfile.go cmd/internal/obj: don't dedup symbols in WriteObjFile 2018-11-03 15:12:58 +00:00
pass.go cmd/internal/obj: various code cleanups 2018-04-05 16:22:39 +00:00
pcln.go cmd/compile: plumb prologueEnd into DWARF 2018-05-14 14:12:31 +00:00
plist.go cmd/compile: avoid duplicate GC bitmap symbols 2018-11-03 15:12:34 +00:00
sizeof_test.go cmd/internal/obj: change Prog.From3 to RestArgs ([]Addr) 2017-09-15 21:05:03 +00:00
sort.go cmd/internal/obj: add SortSlice 2017-04-11 20:29:04 +00:00
stringer.go cmd/internal/obj: follow convention for generated code comment 2018-07-03 16:14:43 +00:00
sym.go cmd/internal/obj, cmd/trace: restore bounds checks dropped in CL 56950 2017-11-16 16:29:08 +00:00
textflag.go cmd/compile: track reflect.Type.Method in deadcode 2016-03-11 21:19:20 +00:00
util.go cmd/asm/internal,cmd/internal/obj/ppc64: add alignment directive to asm for ppc64x 2018-10-23 20:37:29 +00:00