Changeset 14893 in webkit for trunk/JavaScriptCore/kjs/interpreter.h
- Timestamp:
- Jun 16, 2006, 4:47:20 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/interpreter.h
r14834 r14893 37 37 class SavedBuiltins; 38 38 class ScopeChain; 39 39 class TimeoutChecker; 40 40 41 namespace Bindings { 41 42 class RootObject; … … 50 51 class Interpreter { 51 52 friend class Collector; 53 friend class TimeoutChecker; 52 54 public: 53 55 /** … … 323 325 324 326 static Interpreter* interpreterWithGlobalObject(JSObject*); 327 328 void setTimeoutTime(unsigned timeoutTime) { m_timeoutTime = timeoutTime; } 329 330 void startTimeoutCheck(); 331 void stopTimeoutCheck(); 332 333 void pauseTimeoutCheck(); 334 void resumeTimeoutCheck(); 335 336 bool checkTimeout(); 337 338 protected: 339 virtual bool shouldInterruptScript() { return true; } 340 long m_timeoutTime; 341 325 342 private: 343 bool handleTimeout(); 326 344 void init(); 327 345 … … 355 373 Context* m_context; 356 374 CompatMode m_compatMode; 375 376 TimeoutChecker* m_timeoutChecker; 377 bool m_timedOut; 378 379 unsigned m_startTimeoutCheckCount; 380 unsigned m_pauseTimeoutCheckCount; 357 381 358 382 ProtectedPtr<JSObject> m_Object; … … 391 415 }; 392 416 417 inline bool Interpreter::checkTimeout() 418 { 419 if (!m_timedOut) 420 return false; 421 422 return handleTimeout(); 423 } 424 393 425 } // namespace 394 426
Note:
See TracChangeset
for help on using the changeset viewer.