Commit 547021d7 authored by Richard Musiol's avatar Richard Musiol Committed by Richard Musiol

cmd/internal/obj/wasm: refactor handling of wasm variables

This commit improves how registers get mapped to wasm variables. This
is a preparation for future improvements (e.g. adding 32 bit float
registers).

Change-Id: I374c80b2d6c9bcce6b0e373fe921b5ad4dee40ff
Reviewed-on: https://go-review.googlesource.com/c/go/+/191777
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: default avatarCherry Zhang <cherryyz@google.com>
parent aae0b5b0
......@@ -48,6 +48,12 @@ const (
ADrop // opcode 0x1A
ASelect
ALocalGet // opcode 0x20
ALocalSet
ALocalTee
AGlobalGet
AGlobalSet
AI32Load // opcode 0x28
AI64Load
AF32Load
......
......@@ -25,6 +25,11 @@ var Anames = []string{
"CallIndirect",
"Drop",
"Select",
"LocalGet",
"LocalSet",
"LocalTee",
"GlobalGet",
"GlobalSet",
"I32Load",
"I64Load",
"F32Load",
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment