included javascript interpreter updated to spidermonkey 1.5

git-svn-id: svn://dyne.org/rastasoft/freej/trunk@736 383723c8-4afa-0310-b8a8-b1afb83214fc
This commit is contained in:
jaromil
2005-11-13 11:03:19 +00:00
parent 1b6313136d
commit aabfbf42e9
136 changed files with 8521 additions and 5766 deletions
+13 -3
View File
@@ -72,8 +72,6 @@ struct JSStackFrame {
JSObject *sharpArray; /* scope for #n= initializer vars */
uint32 flags; /* frame flags -- see below */
JSStackFrame *dormantNext; /* next dormant frame chain */
JSAtomMap *objAtomMap; /* object atom map, non-null only if we
hit a regexp object literal */
};
typedef struct JSInlineFrame {
@@ -93,6 +91,9 @@ typedef struct JSInlineFrame {
#define JSFRAME_DEBUGGER 0x10 /* frame for JS_EvaluateInStackFrame */
#define JSFRAME_EVAL 0x20 /* frame for obj_eval */
#define JSFRAME_SPECIAL 0x30 /* special evaluation frame flags */
#define JSFRAME_COMPILING 0x40 /* frame is being used by compiler */
#define JSFRAME_COMPILE_N_GO 0x80 /* compiler-and-go mode, can optimize name
references based on scope chain */
#define JSFRAME_OVERRIDE_SHIFT 24 /* override bit-set params; see jsfun.c */
#define JSFRAME_OVERRIDE_BITS 8
@@ -244,6 +245,15 @@ js_GetLocalVariable(JSContext *cx, JSObject *obj, jsval id, jsval *vp);
extern JSBool
js_SetLocalVariable(JSContext *cx, JSObject *obj, jsval id, jsval *vp);
#ifdef DUMP_CALL_TABLE
# define JSOPTION_LOGCALL_TOSOURCE JS_BIT(15)
extern JSHashTable *js_CallTable;
extern size_t js_LogCallToSourceLimit;
extern void js_DumpCallTable(JSContext *cx);
#endif
/*
* NB: js_Invoke requires that cx is currently running JS (i.e., that cx->fp
* is non-null).
@@ -282,7 +292,7 @@ js_Execute(JSContext *cx, JSObject *chain, JSScript *script,
extern JSBool
js_CheckRedeclaration(JSContext *cx, JSObject *obj, jsid id, uintN attrs,
JSBool *foundp);
JSObject **objp, JSProperty **propp);
extern JSBool
js_Interpret(JSContext *cx, jsval *result);