Skip to content

Commit b725e3c

Browse files
committed
Using handlers instead of opcode switch for now
1 parent a3dfd85 commit b725e3c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vm/vm.exec.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//#define ENABLE_IL2CPP
2-
#define USE_OPCODE_SWITCH
2+
//#define USE_OPCODE_SWITCH
33
using System;
44
using System.Collections.Generic;
55
using System.Runtime.CompilerServices;
@@ -807,7 +807,7 @@ internal unsafe void ExecuteOnce()
807807
var bytes = frame.bytecode;
808808
var opcode = bytes[ip];
809809
#if !USE_OPCODE_SWITCH
810-
op_handlers[opcode](vm, this, ref region, ref frame, bc);
810+
op_handlers[opcode](vm, this, ref region, ref frame, bytes);
811811
++ip;
812812
}
813813
}

0 commit comments

Comments
 (0)