Move OP_CLOSURE and OP_LIST down.
Since they're less frequently used, pushing them down speeds things up a little bit.
This commit is contained in:
+3
-3
@@ -1867,9 +1867,6 @@ void wrenBindMethod(ObjClass* classObj, ObjFn* fn)
|
||||
|
||||
// Instructions with one argument:
|
||||
case CODE_CONSTANT:
|
||||
case CODE_CLASS:
|
||||
case CODE_SUBCLASS:
|
||||
case CODE_LIST:
|
||||
case CODE_LOAD_LOCAL:
|
||||
case CODE_STORE_LOCAL:
|
||||
case CODE_LOAD_UPVALUE:
|
||||
@@ -1898,6 +1895,9 @@ void wrenBindMethod(ObjClass* classObj, ObjFn* fn)
|
||||
case CODE_JUMP_IF:
|
||||
case CODE_AND:
|
||||
case CODE_OR:
|
||||
case CODE_LIST:
|
||||
case CODE_CLASS:
|
||||
case CODE_SUBCLASS:
|
||||
ip++;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user