Code

Add new rearranged /dom directory
[inkscape.git] / src / dom / js / jsscript.h
index ffcc40de7bae787bbb29c647a771a45e9da8fee2..6284917afe95b35b88d0ff13afeb01223319043a 100644 (file)
@@ -67,7 +67,8 @@ struct JSScript {
     jsbytecode   *code;         /* bytecodes and their immediate operands */
     uint32       length;        /* length of code vector */
     jsbytecode   *main;         /* main entry point, after predef'ing prolog */
-    JSVersion    version;       /* JS version under which script was compiled */
+    uint16       version;       /* JS version under which script was compiled */
+    uint16       numGlobalVars; /* declared global var/const/function count */
     JSAtomMap    atomMap;       /* maps immediate index to literal struct */
     const char   *filename;     /* source filename or null */
     uintN        lineno;        /* base line number of script */
@@ -102,10 +103,10 @@ extern JSObject *
 js_InitScriptClass(JSContext *cx, JSObject *obj);
 
 extern JSBool
-js_InitScriptGlobals();
+js_InitRuntimeScriptState(JSContext *cx);
 
 extern void
-js_FreeScriptGlobals();
+js_FinishRuntimeScriptState(JSContext *cx);
 
 extern const char *
 js_SaveScriptFilename(JSContext *cx, const char *filename);