jitcraft/Opcodes.tbl
changeset 85 06a0015b6a5c
parent 82 f99bc938522a
     1.1 --- a/jitcraft/Opcodes.tbl	Fri Jul 20 00:03:10 2012 -0700
     1.2 +++ b/jitcraft/Opcodes.tbl	Mon Jul 23 01:19:44 2012 -0700
     1.3 @@ -116,12 +116,12 @@
     1.4  OPDEF(OP_SETARRAY_C,    45,         "setarray.c",   1,      3,  1)
     1.5  OPDEF(OP_GETARRAY_O,    46,         "getarray.o",   1,      2,  1)
     1.6  
     1.7 -// Allocate an array, info LIFO space if possible. The ArrayMap to use is
     1.8 -// specified as an index into the script's Map table.
     1.9 +// Allocate an array. The HeapTenure is stored as a byte following pc. The
    1.10 +// ArrayMap to use is specified as an index into the script's Map table.
    1.11  //
    1.12  // Format:
    1.13  //  [u8 op] [u32 index]
    1.14 -OPDEF(OP_NEWARRAY_LIFO, 47,         "newarray.lifo", 5,     0,  1)
    1.15 +OPDEF(OP_NEWARRAY,      47,         "newarray",     6,      0,  1)
    1.16  
    1.17  // Performs a bounds check on an unsafe array.
    1.18  //
    1.19 @@ -236,3 +236,11 @@
    1.20  // Loads a function from a module object. The operand is the slot number
    1.21  // in the module.
    1.22  OPDEF(OP_GETMODULE_FN,  92,         "getmodule.fn", 5,      1, 1)
    1.23 +
    1.24 +// Opcodes for accessing an environment slot in the global scope.
    1.25 +OPDEF(OP_SETGLOBAL_I,   93,         "setglobal.i",  5,      1, 1)
    1.26 +OPDEF(OP_SETGLOBAL_F,   94,         "setglobal.f",  5,      1, 1)
    1.27 +OPDEF(OP_SETGLOBAL_O,   95,         "setglobal.o",  5,      1, 1)
    1.28 +OPDEF(OP_GETGLOBAL_I,   96,         "getglobal.i",  5,      0, 1)
    1.29 +OPDEF(OP_GETGLOBAL_F,   97,         "getglobal.f",  5,      0, 1)
    1.30 +OPDEF(OP_GETGLOBAL_O,   98,         "getglobal.o",  5,      0, 1)
    1.31 \ No newline at end of file