Changeset 27022 in webkit for trunk/JavaScriptCore/kjs/interpreter.h
- Timestamp:
- Oct 24, 2007, 11:38:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.h
r20310 r27022 46 46 class FunctionObjectImp; 47 47 class FunctionPrototype; 48 class JSGlobalObject; 48 49 class NativeErrorImp; 49 50 class NativeErrorPrototype; … … 95 96 * @param global The object to use as the global object for this interpreter 96 97 */ 97 Interpreter(JS Object* globalObject);98 Interpreter(JSGlobalObject*); 98 99 /** 99 100 * Creates a new interpreter. A global object will be created and … … 112 113 * execution performed by this interpreter 113 114 */ 114 JS Object* globalObject() const;115 JSGlobalObject* globalObject() const; 115 116 116 117 /** … … 301 302 void saveBuiltins (SavedBuiltins&) const; 302 303 void restoreBuiltins (const SavedBuiltins&); 303 304 /**305 * Determine if the value is a global object (for any interpreter). This may306 * be difficult to determine for multiple uses of JSC in a process that are307 * logically independent of each other. In the case of WebCore, this method308 * is used to determine if an object is the Window object so we can perform309 * security checks.310 */311 virtual bool isGlobalObject(JSValue*) { return false; }312 313 /**314 * Find the interpreter for a particular global object. This should really315 * be a static method, but we can't do that is C++. Again, as with isGlobalObject()316 * implementation really need to know about all instances of Interpreter317 * created in an application to correctly implement this method. The only318 * override of this method is currently in WebCore.319 */320 virtual Interpreter* interpreterForGlobalObject(const JSValue*) { return 0; }321 304 322 305 /** … … 338 321 void setContext(Context* c) { m_context = c; } 339 322 Context* context() const { return m_context; } 340 341 static Interpreter* interpreterWithGlobalObject(JSObject*); 342 323 343 324 void setTimeoutTime(unsigned timeoutTime) { m_timeoutTime = timeoutTime; } 344 325 … … 389 370 unsigned m_ticksUntilNextTimeoutCheck; 390 371 391 JS Object* m_globalObject;372 JSGlobalObject* m_globalObject; 392 373 393 374 ObjectObjectImp* m_Object;
Note:
See TracChangeset
for help on using the changeset viewer.