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:
Bob Nystrom
2013-12-13 06:47:34 -08:00
parent 5aaaa33552
commit 4957728893
4 changed files with 95 additions and 95 deletions
+3 -3
View File
@@ -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;