2007-03-22 10:30:00 -07:00
|
|
|
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
|
|
|
|
*
|
2012-05-21 04:12:37 -07:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
#ifndef jsopcode_h___
|
|
|
|
#define jsopcode_h___
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/*
|
|
|
|
* JS bytecode definitions.
|
|
|
|
*/
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "jsprvtd.h"
|
|
|
|
#include "jspubtd.h"
|
|
|
|
#include "jsutil.h"
|
|
|
|
|
|
|
|
JS_BEGIN_EXTERN_C
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JS operation bytecodes.
|
|
|
|
*/
|
|
|
|
typedef enum JSOp {
|
|
|
|
#define OPDEF(op,val,name,token,length,nuses,ndefs,prec,format) \
|
|
|
|
op = val,
|
|
|
|
#include "jsopcode.tbl"
|
|
|
|
#undef OPDEF
|
2010-11-22 08:53:38 -08:00
|
|
|
JSOP_LIMIT,
|
|
|
|
|
|
|
|
/*
|
2011-07-19 09:00:43 -07:00
|
|
|
* These pseudo-ops help js_DecompileValueGenerator decompile JSOP_SETPROP,
|
|
|
|
* JSOP_SETELEM, and comprehension-tails, respectively. They are never
|
|
|
|
* stored in bytecode, so they don't preempt valid opcodes.
|
2010-11-22 08:53:38 -08:00
|
|
|
*/
|
|
|
|
JSOP_GETPROP2 = JSOP_LIMIT,
|
|
|
|
JSOP_GETELEM2 = JSOP_LIMIT + 1,
|
2011-07-19 09:00:43 -07:00
|
|
|
JSOP_FORLOCAL = JSOP_LIMIT + 2,
|
|
|
|
JSOP_FAKE_LIMIT = JSOP_FORLOCAL
|
2007-03-22 10:30:00 -07:00
|
|
|
} JSOp;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JS bytecode formats.
|
|
|
|
*/
|
|
|
|
#define JOF_BYTE 0 /* single bytecode, no immediates */
|
|
|
|
#define JOF_JUMP 1 /* signed 16-bit jump offset immediate */
|
2009-04-05 21:17:22 -07:00
|
|
|
#define JOF_ATOM 2 /* unsigned 16-bit constant index */
|
2007-03-22 10:30:00 -07:00
|
|
|
#define JOF_UINT16 3 /* unsigned 16-bit immediate operand */
|
|
|
|
#define JOF_TABLESWITCH 4 /* table switch */
|
|
|
|
#define JOF_LOOKUPSWITCH 5 /* lookup switch */
|
|
|
|
#define JOF_QARG 6 /* quickened get/set function argument ops */
|
2008-08-06 07:13:22 -07:00
|
|
|
#define JOF_LOCAL 7 /* var or block-local variable */
|
2012-02-03 18:53:29 -08:00
|
|
|
#define JOF_DOUBLE 8 /* uint32_t index for double value */
|
2007-03-22 10:30:00 -07:00
|
|
|
#define JOF_UINT24 12 /* extended unsigned 24-bit literal (index) */
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
#define JOF_UINT8 13 /* uint8_t immediate, e.g. top 8 bits of 24-bit
|
2007-03-22 10:30:00 -07:00
|
|
|
atom index */
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
#define JOF_INT32 14 /* int32_t immediate operand */
|
2009-04-05 21:17:22 -07:00
|
|
|
#define JOF_OBJECT 15 /* unsigned 16-bit object index */
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
#define JOF_SLOTOBJECT 16 /* uint16_t slot index + object index */
|
2012-01-19 17:15:24 -08:00
|
|
|
#define JOF_REGEXP 17 /* unsigned 32-bit regexp index */
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
#define JOF_INT8 18 /* int8_t immediate operand */
|
|
|
|
#define JOF_ATOMOBJECT 19 /* uint16_t constant index + object index */
|
|
|
|
#define JOF_UINT16PAIR 20 /* pair of uint16_t immediates */
|
2012-05-10 11:24:20 -07:00
|
|
|
#define JOF_SCOPECOORD 21 /* pair of uint16_t immediates followed by block index */
|
2007-07-08 02:03:34 -07:00
|
|
|
#define JOF_TYPEMASK 0x001f /* mask for above immediate types */
|
2007-07-11 02:25:45 -07:00
|
|
|
|
2007-07-08 02:03:34 -07:00
|
|
|
#define JOF_NAME (1U<<5) /* name operation */
|
|
|
|
#define JOF_PROP (2U<<5) /* obj.prop operation */
|
|
|
|
#define JOF_ELEM (3U<<5) /* obj[index] operation */
|
|
|
|
#define JOF_XMLNAME (4U<<5) /* XML name: *, a::b, @a, @a::b, etc. */
|
|
|
|
#define JOF_MODEMASK (7U<<5) /* mask for above addressing modes */
|
|
|
|
#define JOF_SET (1U<<8) /* set (i.e., assignment) operation */
|
|
|
|
#define JOF_DEL (1U<<9) /* delete operation */
|
|
|
|
#define JOF_DEC (1U<<10) /* decrement (--, not ++) opcode */
|
|
|
|
#define JOF_INC (2U<<10) /* increment (++, not --) opcode */
|
|
|
|
#define JOF_INCDEC (3U<<10) /* increment or decrement opcode */
|
|
|
|
#define JOF_POST (1U<<12) /* postorder increment or decrement */
|
2010-05-10 22:01:31 -07:00
|
|
|
#define JOF_ASSIGNING JOF_SET /* hint for Class.resolve, used for ops
|
2007-03-22 10:30:00 -07:00
|
|
|
that do simplex assignment */
|
2008-08-06 17:34:58 -07:00
|
|
|
#define JOF_DETECTING (1U<<14) /* object detection for JSNewResolveOp */
|
|
|
|
#define JOF_BACKPATCH (1U<<15) /* backpatch placeholder during codegen */
|
|
|
|
#define JOF_LEFTASSOC (1U<<16) /* left-associative operator */
|
2012-05-23 10:22:46 -07:00
|
|
|
/* (1U<<17) is unused */
|
2012-02-03 18:53:29 -08:00
|
|
|
/* (1U<<18) is unused */
|
2008-08-06 17:34:58 -07:00
|
|
|
#define JOF_PARENHEAD (1U<<20) /* opcode consumes value of expression in
|
2007-05-17 18:41:17 -07:00
|
|
|
parenthesized statement head */
|
2008-08-06 17:34:58 -07:00
|
|
|
#define JOF_INVOKE (1U<<21) /* JSOP_CALL, JSOP_NEW, JSOP_EVAL */
|
|
|
|
#define JOF_TMPSLOT (1U<<22) /* interpreter uses extra temporary slot
|
2008-03-05 12:26:06 -08:00
|
|
|
to root intermediate objects besides
|
|
|
|
the slots opcode uses */
|
2008-08-06 17:34:58 -07:00
|
|
|
#define JOF_TMPSLOT2 (2U<<22) /* interpreter uses extra 2 temporary slot
|
2008-03-05 12:26:06 -08:00
|
|
|
besides the slots opcode uses */
|
2010-06-23 18:58:17 -07:00
|
|
|
#define JOF_TMPSLOT3 (3U<<22) /* interpreter uses extra 3 temporary slot
|
|
|
|
besides the slots opcode uses */
|
2008-08-06 17:34:58 -07:00
|
|
|
#define JOF_TMPSLOT_SHIFT 22
|
2008-03-05 12:26:06 -08:00
|
|
|
#define JOF_TMPSLOT_MASK (JS_BITMASK(2) << JOF_TMPSLOT_SHIFT)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-01-06 22:55:32 -08:00
|
|
|
/* (1U<<24) is unused */
|
2010-06-12 19:00:27 -07:00
|
|
|
#define JOF_GNAME (1U<<25) /* predicted global name */
|
2011-07-28 09:16:53 -07:00
|
|
|
#define JOF_TYPESET (1U<<26) /* has an entry in a script's type sets */
|
2011-07-16 08:25:22 -07:00
|
|
|
#define JOF_DECOMPOSE (1U<<27) /* followed by an equivalent decomposed
|
|
|
|
* version of the opcode */
|
2011-11-10 12:34:24 -08:00
|
|
|
#define JOF_ARITH (1U<<28) /* unary or binary arithmetic opcode */
|
2009-09-09 20:21:15 -07:00
|
|
|
|
2008-02-07 15:18:45 -08:00
|
|
|
/* Shorthands for type from format and type from opcode. */
|
|
|
|
#define JOF_TYPE(fmt) ((fmt) & JOF_TYPEMASK)
|
|
|
|
#define JOF_OPTYPE(op) JOF_TYPE(js_CodeSpec[op].format)
|
|
|
|
|
2007-05-22 23:04:18 -07:00
|
|
|
/* Shorthands for mode from format and mode from opcode. */
|
|
|
|
#define JOF_MODE(fmt) ((fmt) & JOF_MODEMASK)
|
|
|
|
#define JOF_OPMODE(op) JOF_MODE(js_CodeSpec[op].format)
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#define JOF_TYPE_IS_EXTENDED_JUMP(t) \
|
2012-01-09 11:05:06 -08:00
|
|
|
((unsigned)((t) - JOF_JUMP) <= (unsigned)(JOF_LOOKUPSWITCH - JOF_JUMP))
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Immediate operand getters, setters, and bounds.
|
|
|
|
*/
|
|
|
|
|
2012-01-17 17:55:27 -08:00
|
|
|
static JS_ALWAYS_INLINE uint8_t
|
|
|
|
GET_UINT8(jsbytecode *pc)
|
|
|
|
{
|
|
|
|
return (uint8_t) pc[1];
|
|
|
|
}
|
|
|
|
|
|
|
|
static JS_ALWAYS_INLINE void
|
|
|
|
SET_UINT8(jsbytecode *pc, uint8_t u)
|
|
|
|
{
|
|
|
|
pc[1] = (jsbytecode) u;
|
|
|
|
}
|
|
|
|
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
/* Common uint16_t immediate format helpers. */
|
2007-03-22 10:30:00 -07:00
|
|
|
#define UINT16_LEN 2
|
|
|
|
#define UINT16_HI(i) ((jsbytecode)((i) >> 8))
|
|
|
|
#define UINT16_LO(i) ((jsbytecode)(i))
|
2012-02-28 15:11:11 -08:00
|
|
|
#define GET_UINT16(pc) ((unsigned)(((pc)[1] << 8) | (pc)[2]))
|
2007-03-22 10:30:00 -07:00
|
|
|
#define SET_UINT16(pc,i) ((pc)[1] = UINT16_HI(i), (pc)[2] = UINT16_LO(i))
|
2012-02-28 15:11:11 -08:00
|
|
|
#define UINT16_LIMIT ((unsigned)1 << 16)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-01-09 11:05:06 -08:00
|
|
|
/* Helpers for accessing the offsets of jump opcodes. */
|
|
|
|
#define JUMP_OFFSET_LEN 4
|
|
|
|
#define JUMP_OFFSET_MIN INT32_MIN
|
|
|
|
#define JUMP_OFFSET_MAX INT32_MAX
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-01-09 11:05:06 -08:00
|
|
|
static JS_ALWAYS_INLINE int32_t
|
|
|
|
GET_JUMP_OFFSET(jsbytecode *pc)
|
|
|
|
{
|
|
|
|
return (pc[1] << 24) | (pc[2] << 16) | (pc[3] << 8) | pc[4];
|
|
|
|
}
|
|
|
|
|
|
|
|
static JS_ALWAYS_INLINE void
|
|
|
|
SET_JUMP_OFFSET(jsbytecode *pc, int32_t off)
|
|
|
|
{
|
|
|
|
pc[1] = (jsbytecode)(off >> 24);
|
|
|
|
pc[2] = (jsbytecode)(off >> 16);
|
|
|
|
pc[3] = (jsbytecode)(off >> 8);
|
|
|
|
pc[4] = (jsbytecode)off;
|
|
|
|
}
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2012-01-19 17:15:24 -08:00
|
|
|
#define UINT32_INDEX_LEN 4
|
|
|
|
|
|
|
|
static JS_ALWAYS_INLINE uint32_t
|
2012-02-03 18:53:29 -08:00
|
|
|
GET_UINT32_INDEX(const jsbytecode *pc)
|
2012-01-19 17:15:24 -08:00
|
|
|
{
|
|
|
|
return (pc[1] << 24) | (pc[2] << 16) | (pc[3] << 8) | pc[4];
|
|
|
|
}
|
|
|
|
|
|
|
|
static JS_ALWAYS_INLINE void
|
|
|
|
SET_UINT32_INDEX(jsbytecode *pc, uint32_t index)
|
|
|
|
{
|
|
|
|
pc[1] = (jsbytecode)(index >> 24);
|
|
|
|
pc[2] = (jsbytecode)(index >> 16);
|
|
|
|
pc[3] = (jsbytecode)(index >> 8);
|
|
|
|
pc[4] = (jsbytecode)index;
|
|
|
|
}
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#define UINT24_HI(i) ((jsbytecode)((i) >> 16))
|
|
|
|
#define UINT24_MID(i) ((jsbytecode)((i) >> 8))
|
|
|
|
#define UINT24_LO(i) ((jsbytecode)(i))
|
|
|
|
#define GET_UINT24(pc) ((jsatomid)(((pc)[1] << 16) | \
|
|
|
|
((pc)[2] << 8) | \
|
|
|
|
(pc)[3]))
|
|
|
|
#define SET_UINT24(pc,i) ((pc)[1] = UINT24_HI(i), \
|
|
|
|
(pc)[2] = UINT24_MID(i), \
|
|
|
|
(pc)[3] = UINT24_LO(i))
|
|
|
|
|
2012-03-01 18:54:01 -08:00
|
|
|
#define GET_INT8(pc) (int8_t((pc)[1]))
|
2007-07-11 02:25:45 -07:00
|
|
|
|
2012-03-01 18:54:01 -08:00
|
|
|
#define GET_INT32(pc) (((uint32_t((pc)[1]) << 24) | \
|
|
|
|
(uint32_t((pc)[2]) << 16) | \
|
|
|
|
(uint32_t((pc)[3]) << 8) | \
|
|
|
|
uint32_t((pc)[4])))
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
#define SET_INT32(pc,i) ((pc)[1] = (jsbytecode)(uint32_t(i) >> 24), \
|
|
|
|
(pc)[2] = (jsbytecode)(uint32_t(i) >> 16), \
|
|
|
|
(pc)[3] = (jsbytecode)(uint32_t(i) >> 8), \
|
|
|
|
(pc)[4] = (jsbytecode)uint32_t(i))
|
2007-07-11 02:25:45 -07:00
|
|
|
|
2011-10-27 07:15:40 -07:00
|
|
|
/* Index limit is determined by SN_3BYTE_OFFSET_FLAG, see frontend/BytecodeEmitter.h. */
|
2007-07-08 02:03:34 -07:00
|
|
|
#define INDEX_LIMIT_LOG2 23
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
#define INDEX_LIMIT (uint32_t(1) << INDEX_LIMIT_LOG2)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
/* Actual argument count operand format helpers. */
|
|
|
|
#define ARGC_HI(argc) UINT16_HI(argc)
|
|
|
|
#define ARGC_LO(argc) UINT16_LO(argc)
|
|
|
|
#define GET_ARGC(pc) GET_UINT16(pc)
|
|
|
|
#define ARGC_LIMIT UINT16_LIMIT
|
|
|
|
|
2008-08-06 07:13:22 -07:00
|
|
|
/* Synonyms for quick JOF_QARG and JOF_LOCAL bytecodes. */
|
2007-03-22 10:30:00 -07:00
|
|
|
#define GET_ARGNO(pc) GET_UINT16(pc)
|
|
|
|
#define SET_ARGNO(pc,argno) SET_UINT16(pc,argno)
|
|
|
|
#define ARGNO_LEN 2
|
|
|
|
#define ARGNO_LIMIT UINT16_LIMIT
|
|
|
|
|
2008-07-20 13:13:17 -07:00
|
|
|
#define GET_SLOTNO(pc) GET_UINT16(pc)
|
|
|
|
#define SET_SLOTNO(pc,varno) SET_UINT16(pc,varno)
|
|
|
|
#define SLOTNO_LEN 2
|
|
|
|
#define SLOTNO_LIMIT UINT16_LIMIT
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
struct JSCodeSpec {
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
int8_t length; /* length including opcode byte */
|
|
|
|
int8_t nuses; /* arity, -1 if variadic */
|
|
|
|
int8_t ndefs; /* number of stack results */
|
|
|
|
uint8_t prec; /* operator precedence */
|
|
|
|
uint32_t format; /* immediate operand format */
|
2010-05-22 15:38:04 -07:00
|
|
|
|
Bug 708735 - Use <stdint.h> types in JSAPI and throughout SpiderMonkey. Continue to provide the {u,}int{8,16,32,64} and JS{Uint,Int}{8,16,32,64} integer types through a single header, however, for a simpler backout strategy -- and also to ease the transition for embedders. r=timeless on switching the jsd API to use the <stdint.h> types, r=luke, r=dmandelin
2011-12-08 19:54:10 -08:00
|
|
|
uint32_t type() const { return JOF_TYPE(format); }
|
2007-03-22 10:30:00 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
extern const JSCodeSpec js_CodeSpec[];
|
2012-02-28 15:11:11 -08:00
|
|
|
extern unsigned js_NumCodeSpecs;
|
2008-02-28 16:29:59 -08:00
|
|
|
extern const char *js_CodeName[];
|
2007-03-22 10:30:00 -07:00
|
|
|
extern const char js_EscapeMap[];
|
|
|
|
|
2010-03-04 20:44:09 -08:00
|
|
|
/* Silence unreferenced formal parameter warnings */
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(push)
|
|
|
|
#pragma warning(disable:4100)
|
|
|
|
#endif
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/*
|
|
|
|
* Return a GC'ed string containing the chars in str, with any non-printing
|
|
|
|
* chars or quotes (' or " as specified by the quote argument) escaped, and
|
|
|
|
* with the quote character at the beginning and end of the result string.
|
|
|
|
*/
|
|
|
|
extern JSString *
|
|
|
|
js_QuoteString(JSContext *cx, JSString *str, jschar quote);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* JSPrinter operations, for printf style message formatting. The return
|
|
|
|
* value from js_GetPrinterOutput() is the printer's cumulative output, in
|
|
|
|
* a GC'ed string.
|
2009-11-18 13:33:53 -08:00
|
|
|
*
|
|
|
|
* strict is true if the context in which the output will appear has
|
|
|
|
* already been marked as strict, thus indicating that nested
|
|
|
|
* functions need not be re-marked with a strict directive. It should
|
|
|
|
* be false in the outermost printer.
|
2007-03-22 10:30:00 -07:00
|
|
|
*/
|
2007-04-10 06:29:10 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
extern JSPrinter *
|
2009-11-18 13:33:53 -08:00
|
|
|
js_NewPrinter(JSContext *cx, const char *name, JSFunction *fun,
|
2012-02-28 15:11:11 -08:00
|
|
|
unsigned indent, JSBool pretty, JSBool grouped, JSBool strict);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
extern void
|
|
|
|
js_DestroyPrinter(JSPrinter *jp);
|
|
|
|
|
|
|
|
extern JSString *
|
|
|
|
js_GetPrinterOutput(JSPrinter *jp);
|
|
|
|
|
|
|
|
extern int
|
|
|
|
js_printf(JSPrinter *jp, const char *format, ...);
|
|
|
|
|
|
|
|
extern JSBool
|
|
|
|
js_puts(JSPrinter *jp, const char *s);
|
|
|
|
|
2007-07-08 02:03:34 -07:00
|
|
|
#define GET_ATOM_FROM_BYTECODE(script, pc, pcoff, atom) \
|
|
|
|
JS_BEGIN_MACRO \
|
2011-12-27 00:27:02 -08:00
|
|
|
JS_ASSERT(js_CodeSpec[*(pc)].format & JOF_ATOM); \
|
2012-02-03 18:53:29 -08:00
|
|
|
(atom) = (script)->getAtom(GET_UINT32_INDEX((pc) + (pcoff))); \
|
2009-09-04 16:27:17 -07:00
|
|
|
JS_END_MACRO
|
|
|
|
|
2011-12-27 00:27:02 -08:00
|
|
|
#define GET_NAME_FROM_BYTECODE(script, pc, pcoff, name) \
|
|
|
|
JS_BEGIN_MACRO \
|
|
|
|
JSAtom *atom_; \
|
|
|
|
GET_ATOM_FROM_BYTECODE(script, pc, pcoff, atom_); \
|
|
|
|
JS_ASSERT(js_CodeSpec[*(pc)].format & (JOF_NAME | JOF_PROP)); \
|
|
|
|
(name) = atom_->asPropertyName(); \
|
|
|
|
JS_END_MACRO
|
|
|
|
|
2011-10-07 12:02:50 -07:00
|
|
|
namespace js {
|
|
|
|
|
2012-02-28 15:11:11 -08:00
|
|
|
extern unsigned
|
2011-10-07 12:02:50 -07:00
|
|
|
StackUses(JSScript *script, jsbytecode *pc);
|
2009-03-30 07:19:50 -07:00
|
|
|
|
2012-02-28 15:11:11 -08:00
|
|
|
extern unsigned
|
2011-10-07 12:02:50 -07:00
|
|
|
StackDefs(JSScript *script, jsbytecode *pc);
|
|
|
|
|
|
|
|
} /* namespace js */
|
2008-09-01 23:25:15 -07:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
/*
|
|
|
|
* Decompilers, for script, function, and expression pretty-printing.
|
|
|
|
*/
|
|
|
|
extern JSBool
|
|
|
|
js_DecompileScript(JSPrinter *jp, JSScript *script);
|
|
|
|
|
2009-10-27 17:46:09 -07:00
|
|
|
extern JSBool
|
2008-03-29 03:34:29 -07:00
|
|
|
js_DecompileFunctionBody(JSPrinter *jp);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-10-27 17:46:09 -07:00
|
|
|
extern JSBool
|
2008-03-29 03:34:29 -07:00
|
|
|
js_DecompileFunction(JSPrinter *jp);
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2009-11-27 17:05:21 -08:00
|
|
|
/*
|
|
|
|
* Some C++ compilers treat the language linkage (extern "C" vs.
|
|
|
|
* extern "C++") as part of function (and thus pointer-to-function)
|
|
|
|
* types. The use of this typedef (defined in "C") ensures that
|
|
|
|
* js_DecompileToString's definition (in "C++") gets matched up with
|
|
|
|
* this declaration.
|
|
|
|
*/
|
2009-11-26 17:22:24 -08:00
|
|
|
typedef JSBool (* JSDecompilerPtr)(JSPrinter *);
|
|
|
|
|
2009-11-05 14:34:39 -08:00
|
|
|
extern JSString *
|
|
|
|
js_DecompileToString(JSContext *cx, const char *name, JSFunction *fun,
|
2012-02-28 15:11:11 -08:00
|
|
|
unsigned indent, JSBool pretty, JSBool grouped, JSBool strict,
|
2009-11-26 17:22:24 -08:00
|
|
|
JSDecompilerPtr decompiler);
|
2009-11-05 14:34:39 -08:00
|
|
|
|
2011-06-25 18:58:17 -07:00
|
|
|
/*
|
|
|
|
* Given bytecode address pc in script's main program code, return the operand
|
|
|
|
* stack depth just before (JSOp) *pc executes.
|
|
|
|
*/
|
2012-02-28 15:11:11 -08:00
|
|
|
extern unsigned
|
2011-06-25 18:58:17 -07:00
|
|
|
js_ReconstructStackDepth(JSContext *cx, JSScript *script, jsbytecode *pc);
|
|
|
|
|
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning(pop)
|
|
|
|
#endif
|
|
|
|
|
|
|
|
JS_END_EXTERN_C
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#define JSDVG_IGNORE_STACK 0
|
|
|
|
#define JSDVG_SEARCH_STACK 1
|
|
|
|
|
2011-06-25 18:58:17 -07:00
|
|
|
/*
|
|
|
|
* Get the length of variable-length bytecode like JSOP_TABLESWITCH.
|
|
|
|
*/
|
|
|
|
extern size_t
|
2011-12-07 13:15:48 -08:00
|
|
|
js_GetVariableBytecodeLength(jsbytecode *pc);
|
2011-06-25 18:58:17 -07:00
|
|
|
|
2010-06-07 18:21:51 -07:00
|
|
|
namespace js {
|
|
|
|
|
2012-08-12 18:50:49 -07:00
|
|
|
/*
|
|
|
|
* Find the source expression that resulted in v, and return a newly allocated
|
|
|
|
* C-string containing it. Fall back on v's string conversion (fallback) if we
|
|
|
|
* can't find the bytecode that generated and pushed v on the operand stack.
|
|
|
|
*
|
|
|
|
* Search the current stack frame if spindex is JSDVG_SEARCH_STACK. Don't
|
|
|
|
* look for v on the stack if spindex is JSDVG_IGNORE_STACK. Otherwise,
|
|
|
|
* spindex is the negative index of v, measured from cx->fp->sp, or from a
|
|
|
|
* lower frame's sp if cx->fp is native.
|
|
|
|
*
|
2012-07-23 14:01:54 -07:00
|
|
|
* The optional argument skipStackHits can be used to skip a hit in the stack
|
|
|
|
* frame. This can be useful in self-hosted code that wants to report value
|
|
|
|
* errors containing decompiled values that are useful for the user, instead of
|
|
|
|
* values used internally by the self-hosted code.
|
|
|
|
*
|
2012-08-12 18:50:49 -07:00
|
|
|
* The caller must call JS_free on the result after a succsesful call.
|
|
|
|
*/
|
|
|
|
char *
|
2012-07-23 14:01:54 -07:00
|
|
|
DecompileValueGenerator(JSContext *cx, int spindex, HandleValue v,
|
|
|
|
HandleString fallback, int skipStackHits = 0);
|
2010-06-07 18:21:51 -07:00
|
|
|
|
2009-01-28 15:31:30 -08:00
|
|
|
/*
|
|
|
|
* Sprintf, but with unlimited and automatically allocated buffering.
|
|
|
|
*/
|
2012-01-20 15:09:56 -08:00
|
|
|
class Sprinter
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
struct InvariantChecker
|
|
|
|
{
|
|
|
|
const Sprinter *parent;
|
|
|
|
|
|
|
|
explicit InvariantChecker(const Sprinter *p) : parent(p) {
|
|
|
|
parent->checkInvariants();
|
|
|
|
}
|
|
|
|
|
|
|
|
~InvariantChecker() {
|
|
|
|
parent->checkInvariants();
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
JSContext *context; /* context executing the decompiler */
|
|
|
|
|
|
|
|
private:
|
|
|
|
static const size_t DefaultSize;
|
|
|
|
#ifdef DEBUG
|
|
|
|
bool initialized; /* true if this is initialized, use for debug builds */
|
|
|
|
#endif
|
|
|
|
char *base; /* malloc'd buffer address */
|
|
|
|
size_t size; /* size of buffer allocated at base */
|
|
|
|
ptrdiff_t offset; /* offset of next free char in buffer */
|
2009-01-28 15:31:30 -08:00
|
|
|
|
2012-01-20 15:09:56 -08:00
|
|
|
bool realloc_(size_t newSize);
|
2009-01-28 15:31:30 -08:00
|
|
|
|
2012-01-20 15:09:56 -08:00
|
|
|
public:
|
|
|
|
explicit Sprinter(JSContext *cx);
|
|
|
|
~Sprinter();
|
|
|
|
|
|
|
|
/* Initialize this sprinter, returns false on error */
|
|
|
|
bool init();
|
|
|
|
|
|
|
|
void checkInvariants() const;
|
|
|
|
|
|
|
|
const char *string() const;
|
|
|
|
const char *stringEnd() const;
|
|
|
|
/* Returns the string at offset |off| */
|
|
|
|
char *stringAt(ptrdiff_t off) const;
|
|
|
|
/* Returns the char at offset |off| */
|
|
|
|
char &operator[](size_t off);
|
|
|
|
/* Test if this Sprinter is empty */
|
|
|
|
bool empty() const;
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Attempt to reserve len + 1 space (for a trailing NULL byte). If the
|
|
|
|
* attempt succeeds, return a pointer to the start of that space and adjust the
|
|
|
|
* internal content. The caller *must* completely fill this space on success.
|
|
|
|
*/
|
|
|
|
char *reserve(size_t len);
|
|
|
|
/* Like reserve, but memory is initialized to 0 */
|
|
|
|
char *reserveAndClear(size_t len);
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Puts |len| characters from |s| at the current position and return an offset to
|
|
|
|
* the beginning of this new data
|
|
|
|
*/
|
|
|
|
ptrdiff_t put(const char *s, size_t len);
|
2012-02-15 16:15:57 -08:00
|
|
|
ptrdiff_t put(const char *s);
|
2012-01-20 15:09:56 -08:00
|
|
|
ptrdiff_t putString(JSString *str);
|
|
|
|
|
|
|
|
/* Prints a formatted string into the buffer */
|
|
|
|
int printf(const char *fmt, ...);
|
|
|
|
|
|
|
|
/* Change the offset */
|
|
|
|
void setOffset(const char *end);
|
|
|
|
void setOffset(ptrdiff_t off);
|
|
|
|
|
|
|
|
/* Get the offset */
|
|
|
|
ptrdiff_t getOffset() const;
|
|
|
|
ptrdiff_t getOffsetOf(const char *string) const;
|
|
|
|
};
|
2009-01-28 15:31:30 -08:00
|
|
|
|
|
|
|
extern ptrdiff_t
|
|
|
|
Sprint(Sprinter *sp, const char *format, ...);
|
|
|
|
|
2011-03-30 17:43:36 -07:00
|
|
|
extern bool
|
|
|
|
CallResultEscapes(jsbytecode *pc);
|
|
|
|
|
2012-02-28 15:11:11 -08:00
|
|
|
static inline unsigned
|
2011-07-16 13:47:58 -07:00
|
|
|
GetDecomposeLength(jsbytecode *pc, size_t len)
|
2011-07-16 08:25:22 -07:00
|
|
|
{
|
2011-07-16 13:47:58 -07:00
|
|
|
/*
|
2012-02-03 18:53:29 -08:00
|
|
|
* The last byte of a DECOMPOSE op stores the decomposed length. This is a
|
|
|
|
* constant: perhaps we should just hardcode values instead?
|
2011-07-16 13:47:58 -07:00
|
|
|
*/
|
2011-12-07 13:15:48 -08:00
|
|
|
JS_ASSERT(size_t(js_CodeSpec[*pc].length) == len);
|
2012-02-28 15:11:11 -08:00
|
|
|
return (unsigned) pc[len - 1];
|
2011-07-16 08:25:22 -07:00
|
|
|
}
|
|
|
|
|
2012-02-28 15:11:11 -08:00
|
|
|
static inline unsigned
|
2011-12-07 13:15:48 -08:00
|
|
|
GetBytecodeLength(jsbytecode *pc)
|
|
|
|
{
|
|
|
|
JSOp op = (JSOp)*pc;
|
|
|
|
JS_ASSERT(op < JSOP_LIMIT);
|
|
|
|
|
|
|
|
if (js_CodeSpec[op].length != -1)
|
|
|
|
return js_CodeSpec[op].length;
|
|
|
|
return js_GetVariableBytecodeLength(pc);
|
|
|
|
}
|
2011-06-25 18:58:17 -07:00
|
|
|
|
|
|
|
extern bool
|
|
|
|
IsValidBytecodeOffset(JSContext *cx, JSScript *script, size_t offset);
|
|
|
|
|
2011-06-28 12:46:00 -07:00
|
|
|
inline bool
|
|
|
|
FlowsIntoNext(JSOp op)
|
|
|
|
{
|
2011-08-15 12:11:41 -07:00
|
|
|
/* JSOP_YIELD is considered to flow into the next instruction, like JSOP_CALL. */
|
2011-06-28 12:46:00 -07:00
|
|
|
return op != JSOP_STOP && op != JSOP_RETURN && op != JSOP_RETRVAL && op != JSOP_THROW &&
|
2012-01-09 11:05:06 -08:00
|
|
|
op != JSOP_GOTO && op != JSOP_RETSUB;
|
2011-06-28 12:46:00 -07:00
|
|
|
}
|
|
|
|
|
2012-07-26 16:08:33 -07:00
|
|
|
inline bool
|
|
|
|
IsArgOp(JSOp op)
|
|
|
|
{
|
|
|
|
return JOF_OPTYPE(op) == JOF_QARG;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsLocalOp(JSOp op)
|
|
|
|
{
|
|
|
|
return JOF_OPTYPE(op) == JOF_LOCAL;
|
|
|
|
}
|
|
|
|
|
2012-08-17 18:09:43 -07:00
|
|
|
inline bool
|
|
|
|
IsGlobalOp(JSOp op)
|
|
|
|
{
|
|
|
|
return js_CodeSpec[op].format & JOF_GNAME;
|
|
|
|
}
|
|
|
|
|
2012-06-25 16:06:55 -07:00
|
|
|
inline bool
|
|
|
|
IsGetterPC(jsbytecode *pc)
|
|
|
|
{
|
|
|
|
JSOp op = JSOp(*pc);
|
|
|
|
return op == JSOP_LENGTH || op == JSOP_GETPROP || op == JSOP_CALLPROP;
|
|
|
|
}
|
|
|
|
|
|
|
|
inline bool
|
|
|
|
IsSetterPC(jsbytecode *pc)
|
|
|
|
{
|
|
|
|
JSOp op = JSOp(*pc);
|
|
|
|
return op == JSOP_SETPROP || op == JSOP_SETNAME || op == JSOP_SETGNAME;
|
|
|
|
}
|
2011-11-10 12:34:24 -08:00
|
|
|
/*
|
|
|
|
* Counts accumulated for a single opcode in a script. The counts tracked vary
|
2012-04-01 13:24:56 -07:00
|
|
|
* between opcodes, and this structure ensures that counts are accessed in a
|
|
|
|
* coherent fashion.
|
2011-11-10 12:34:24 -08:00
|
|
|
*/
|
2012-04-01 13:24:56 -07:00
|
|
|
class PCCounts
|
2011-11-10 12:34:24 -08:00
|
|
|
{
|
|
|
|
friend struct ::JSScript;
|
|
|
|
double *counts;
|
|
|
|
#ifdef DEBUG
|
|
|
|
size_t capacity;
|
2012-07-24 11:11:44 -07:00
|
|
|
#elif JS_BITS_PER_WORD == 32
|
|
|
|
void *padding;
|
2010-06-07 18:21:51 -07:00
|
|
|
#endif
|
|
|
|
|
2011-11-10 12:34:24 -08:00
|
|
|
public:
|
|
|
|
|
|
|
|
enum BaseCounts {
|
|
|
|
BASE_INTERP = 0,
|
|
|
|
BASE_METHODJIT,
|
|
|
|
|
|
|
|
BASE_METHODJIT_STUBS,
|
|
|
|
BASE_METHODJIT_CODE,
|
|
|
|
BASE_METHODJIT_PICS,
|
|
|
|
|
2012-04-01 13:24:56 -07:00
|
|
|
BASE_LIMIT
|
2011-11-10 12:34:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
enum AccessCounts {
|
2012-04-01 13:24:56 -07:00
|
|
|
ACCESS_MONOMORPHIC = BASE_LIMIT,
|
2011-11-10 12:34:24 -08:00
|
|
|
ACCESS_DIMORPHIC,
|
|
|
|
ACCESS_POLYMORPHIC,
|
|
|
|
|
|
|
|
ACCESS_BARRIER,
|
|
|
|
ACCESS_NOBARRIER,
|
|
|
|
|
|
|
|
ACCESS_UNDEFINED,
|
|
|
|
ACCESS_NULL,
|
|
|
|
ACCESS_BOOLEAN,
|
|
|
|
ACCESS_INT32,
|
|
|
|
ACCESS_DOUBLE,
|
|
|
|
ACCESS_STRING,
|
|
|
|
ACCESS_OBJECT,
|
|
|
|
|
2012-04-01 13:24:56 -07:00
|
|
|
ACCESS_LIMIT
|
2011-11-10 12:34:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
static bool accessOp(JSOp op) {
|
|
|
|
/*
|
|
|
|
* Access ops include all name, element and property reads, as well as
|
|
|
|
* SETELEM and SETPROP (for ElementCounts/PropertyCounts alignment).
|
|
|
|
*/
|
2012-03-23 17:59:56 -07:00
|
|
|
if (op == JSOP_SETELEM || op == JSOP_SETPROP)
|
2011-11-10 12:34:24 -08:00
|
|
|
return true;
|
|
|
|
int format = js_CodeSpec[op].format;
|
|
|
|
return !!(format & (JOF_NAME | JOF_GNAME | JOF_ELEM | JOF_PROP))
|
|
|
|
&& !(format & (JOF_SET | JOF_INCDEC));
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ElementCounts {
|
2012-04-01 13:24:56 -07:00
|
|
|
ELEM_ID_INT = ACCESS_LIMIT,
|
2011-11-10 12:34:24 -08:00
|
|
|
ELEM_ID_DOUBLE,
|
|
|
|
ELEM_ID_OTHER,
|
|
|
|
ELEM_ID_UNKNOWN,
|
|
|
|
|
|
|
|
ELEM_OBJECT_TYPED,
|
|
|
|
ELEM_OBJECT_PACKED,
|
|
|
|
ELEM_OBJECT_DENSE,
|
|
|
|
ELEM_OBJECT_OTHER,
|
|
|
|
|
2012-04-01 13:24:56 -07:00
|
|
|
ELEM_LIMIT
|
2011-11-10 12:34:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
static bool elementOp(JSOp op) {
|
2012-01-13 17:47:59 -08:00
|
|
|
return accessOp(op) && (JOF_MODE(js_CodeSpec[op].format) == JOF_ELEM);
|
2011-11-10 12:34:24 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
enum PropertyCounts {
|
2012-04-01 13:24:56 -07:00
|
|
|
PROP_STATIC = ACCESS_LIMIT,
|
2011-11-10 12:34:24 -08:00
|
|
|
PROP_DEFINITE,
|
|
|
|
PROP_OTHER,
|
|
|
|
|
2012-04-01 13:24:56 -07:00
|
|
|
PROP_LIMIT
|
2011-11-10 12:34:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
static bool propertyOp(JSOp op) {
|
2012-01-13 17:47:59 -08:00
|
|
|
return accessOp(op) && (JOF_MODE(js_CodeSpec[op].format) == JOF_PROP);
|
2011-11-10 12:34:24 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
enum ArithCounts {
|
2012-04-01 13:24:56 -07:00
|
|
|
ARITH_INT = BASE_LIMIT,
|
2011-11-10 12:34:24 -08:00
|
|
|
ARITH_DOUBLE,
|
|
|
|
ARITH_OTHER,
|
|
|
|
ARITH_UNKNOWN,
|
|
|
|
|
2012-04-01 13:24:56 -07:00
|
|
|
ARITH_LIMIT
|
2011-11-10 12:34:24 -08:00
|
|
|
};
|
|
|
|
|
|
|
|
static bool arithOp(JSOp op) {
|
|
|
|
return !!(js_CodeSpec[op].format & (JOF_INCDEC | JOF_ARITH));
|
|
|
|
}
|
|
|
|
|
|
|
|
static size_t numCounts(JSOp op)
|
|
|
|
{
|
|
|
|
if (accessOp(op)) {
|
|
|
|
if (elementOp(op))
|
2012-04-01 13:24:56 -07:00
|
|
|
return ELEM_LIMIT;
|
2011-11-10 12:34:24 -08:00
|
|
|
if (propertyOp(op))
|
2012-04-01 13:24:56 -07:00
|
|
|
return PROP_LIMIT;
|
|
|
|
return ACCESS_LIMIT;
|
2011-11-10 12:34:24 -08:00
|
|
|
}
|
|
|
|
if (arithOp(op))
|
2012-04-01 13:24:56 -07:00
|
|
|
return ARITH_LIMIT;
|
|
|
|
return BASE_LIMIT;
|
2011-11-10 12:34:24 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
static const char *countName(JSOp op, size_t which);
|
|
|
|
|
|
|
|
double *rawCounts() { return counts; }
|
|
|
|
|
|
|
|
double& get(size_t which) {
|
|
|
|
JS_ASSERT(which < capacity);
|
|
|
|
return counts[which];
|
|
|
|
}
|
2011-12-16 13:11:08 -08:00
|
|
|
|
2012-01-09 15:45:54 -08:00
|
|
|
/* Boolean conversion, for 'if (counters) ...' */
|
2011-12-16 13:11:08 -08:00
|
|
|
operator void*() const {
|
|
|
|
return counts;
|
|
|
|
}
|
2011-11-10 12:34:24 -08:00
|
|
|
};
|
|
|
|
|
2012-07-24 11:11:44 -07:00
|
|
|
/* Necessary for alignment with the script. */
|
|
|
|
JS_STATIC_ASSERT(sizeof(PCCounts) % sizeof(Value) == 0);
|
|
|
|
|
2012-02-09 12:08:28 -08:00
|
|
|
static inline jsbytecode *
|
|
|
|
GetNextPc(jsbytecode *pc)
|
|
|
|
{
|
|
|
|
return pc + js_CodeSpec[JSOp(*pc)].length;
|
|
|
|
}
|
|
|
|
|
2011-11-10 12:34:24 -08:00
|
|
|
} /* namespace js */
|
|
|
|
|
2012-01-30 09:17:38 -08:00
|
|
|
#if defined(DEBUG)
|
2009-01-28 15:31:30 -08:00
|
|
|
/*
|
|
|
|
* Disassemblers, for debugging only.
|
|
|
|
*/
|
2012-07-30 04:19:09 -07:00
|
|
|
JSBool
|
|
|
|
js_Disassemble(JSContext *cx, JS::Handle<JSScript*> script, JSBool lines, js::Sprinter *sp);
|
2009-01-28 15:31:30 -08:00
|
|
|
|
2012-07-30 04:19:09 -07:00
|
|
|
unsigned
|
|
|
|
js_Disassemble1(JSContext *cx, JS::Handle<JSScript*> script, jsbytecode *pc, unsigned loc,
|
2011-05-10 11:26:39 -07:00
|
|
|
JSBool lines, js::Sprinter *sp);
|
2011-11-10 12:34:24 -08:00
|
|
|
|
2012-07-30 04:19:09 -07:00
|
|
|
void
|
|
|
|
js_DumpPCCounts(JSContext *cx, JS::Handle<JSScript*> script, js::Sprinter *sp);
|
2010-10-22 17:18:47 -07:00
|
|
|
#endif
|
2009-01-28 15:31:30 -08:00
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
#endif /* jsopcode_h___ */
|