Changeset 15481 in webkit for trunk/JavaScriptCore/API/JSContextRef.cpp
- Timestamp:
- Jul 17, 2006, 1:14:39 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSContextRef.cpp
r15437 r15481 47 47 48 48 Interpreter* interpreter = new Interpreter(globalObject); // adds the built-in object prototype to the global object 49 JSGlobalContextRef c ontext= reinterpret_cast<JSGlobalContextRef>(interpreter->globalExec());50 return JSGlobalContextRetain(c ontext);49 JSGlobalContextRef ctx = reinterpret_cast<JSGlobalContextRef>(interpreter->globalExec()); 50 return JSGlobalContextRetain(ctx); 51 51 } 52 52 53 JSGlobalContextRef JSGlobalContextRetain(JSGlobalContextRef c ontext)53 JSGlobalContextRef JSGlobalContextRetain(JSGlobalContextRef ctx) 54 54 { 55 55 JSLock lock; 56 ExecState* exec = toJS(c ontext);56 ExecState* exec = toJS(ctx); 57 57 exec->dynamicInterpreter()->ref(); 58 return c ontext;58 return ctx; 59 59 } 60 60 61 void JSGlobalContextRelease(JSGlobalContextRef c ontext)61 void JSGlobalContextRelease(JSGlobalContextRef ctx) 62 62 { 63 63 JSLock lock; 64 ExecState* exec = toJS(c ontext);64 ExecState* exec = toJS(ctx); 65 65 exec->dynamicInterpreter()->deref(); 66 66 } 67 67 68 JSObjectRef JSContextGetGlobalObject(JSContextRef c ontext)68 JSObjectRef JSContextGetGlobalObject(JSContextRef ctx) 69 69 { 70 ExecState* exec = toJS(c ontext);70 ExecState* exec = toJS(ctx); 71 71 return toRef(exec->dynamicInterpreter()->globalObject()); 72 72 }
Note:
See TracChangeset
for help on using the changeset viewer.