fixed mutability
This commit is contained in:
@@ -27,7 +27,8 @@ const (
|
||||
OpJumpNotTruthy
|
||||
OpJump
|
||||
OpNull
|
||||
OpAssign
|
||||
OpAssignGlobal
|
||||
OpAssignLocal
|
||||
OpGetGlobal
|
||||
OpSetGlobal
|
||||
OpArray
|
||||
@@ -52,6 +53,8 @@ type Definition struct {
|
||||
|
||||
var definitions = map[Opcode]*Definition{
|
||||
OpConstant: {"OpConstant", []int{2}},
|
||||
OpAssignGlobal: {"OpAssignGlobal", []int{2}},
|
||||
OpAssignLocal: {"OpAssignLocal", []int{1}},
|
||||
OpAdd: {"OpAdd", []int{}},
|
||||
OpPop: {"OpPop", []int{}},
|
||||
OpSub: {"OpSub", []int{}},
|
||||
@@ -67,7 +70,6 @@ var definitions = map[Opcode]*Definition{
|
||||
OpJumpNotTruthy: {"OpJumpNotTruthy", []int{2}},
|
||||
OpJump: {"OpJump", []int{2}},
|
||||
OpNull: {"OpNull", []int{}},
|
||||
OpAssign: {"OpAssign", []int{}},
|
||||
OpGetGlobal: {"OpGetGlobal", []int{2}},
|
||||
OpSetGlobal: {"OpSetGlobal", []int{2}},
|
||||
OpArray: {"OpArray", []int{2}},
|
||||
|
||||
Reference in New Issue
Block a user