equal
deleted
inserted
replaced
103 |
103 |
104 /** |
104 /** |
105 * Resets the global object's default properties and adds the default object |
105 * Resets the global object's default properties and adds the default object |
106 * prototype to its prototype chain. |
106 * prototype to its prototype chain. |
107 */ |
107 */ |
108 IMPORT void initGlobalObject(); |
108 void initGlobalObject(); |
109 |
109 |
110 /** |
110 /** |
111 * Returns the object that is used as the global object during all script |
111 * Returns the object that is used as the global object during all script |
112 * execution performed by this interpreter |
112 * execution performed by this interpreter |
113 */ |
113 */ |
350 void ref() { ++m_refCount; } |
350 void ref() { ++m_refCount; } |
351 void deref() { if (--m_refCount <= 0) delete this; } |
351 void deref() { if (--m_refCount <= 0) delete this; } |
352 int refCount() const { return m_refCount; } |
352 int refCount() const { return m_refCount; } |
353 |
353 |
354 protected: |
354 protected: |
355 IMPORT virtual ~Interpreter(); // only deref should delete us |
355 virtual ~Interpreter(); // only deref should delete us |
356 virtual bool shouldInterruptScript() const { return true; } |
356 virtual bool shouldInterruptScript() const { return true; } |
357 |
357 |
358 unsigned m_timeoutTime; |
358 unsigned m_timeoutTime; |
359 |
359 |
360 |
360 |