diff options
| author | Keith Randall <khr@golang.org> | 2021-07-26 17:41:02 -0700 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2021-07-29 17:15:21 +0000 |
| commit | f4f503e0a3ac7fbf9f57c7fe34cecc8df383e334 (patch) | |
| tree | 397dedaa4096fc324d57593584145d4daf9fdc51 /src/cmd/compile/internal/ir/node.go | |
| parent | 4a47e40a14c2051656d4ff4b768fe21a5fc308fa (diff) | |
| download | go-f4f503e0a3ac7fbf9f57c7fe34cecc8df383e334.tar.xz | |
[dev.typeparams] cmd/compile: implement generic .(T) operations
Introduce new dynamic dottype operations which take a dynamic
instead of static type to convert to.
Change-Id: I5824a1fea056fe811b1226ce059e1e8da1baa335
Reviewed-on: https://go-review.googlesource.com/c/go/+/337609
Trust: Keith Randall <khr@golang.org>
Trust: Dan Scales <danscales@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dan Scales <danscales@google.com>
Diffstat (limited to 'src/cmd/compile/internal/ir/node.go')
| -rw-r--r-- | src/cmd/compile/internal/ir/node.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/compile/internal/ir/node.go b/src/cmd/compile/internal/ir/node.go index 0fbc867c1d..e5f0c38f86 100644 --- a/src/cmd/compile/internal/ir/node.go +++ b/src/cmd/compile/internal/ir/node.go @@ -319,6 +319,10 @@ const ( OINLMARK // start of an inlined body, with file/line of caller. Xoffset is an index into the inline tree. OLINKSYMOFFSET // offset within a name + // opcodes for generics + ODYNAMICDOTTYPE + ODYNAMICDOTTYPE2 + // arch-specific opcodes OTAILCALL // tail call to another function OGETG // runtime.getg() (read g pointer) |
