⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176700 in webkit


Ignore:
Timestamp:
Dec 2, 2014, 4:49:19 PM (12 years ago)
Author:
msaboff@apple.com
Message:

Change CallFrame::globalThisValue() to not use CallFrame::scope()
https://bugs.webkit.org/show_bug.cgi?id=139202

Reviewed by Mark Lam.

Changed to use the globalThis() on the globalObject associated with the
callee. Moved the inline definition to JSGlobalObject.h instead of
including JSGlobalObject.h in JSScope.h. Also moved it as JSScope
objects are no longer involved in getting the value.

  • runtime/JSGlobalObject.h:

(JSC::ExecState::globalThisValue):

  • runtime/JSScope.h:

(JSC::ExecState::globalThisValue): Deleted.

Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r176676 r176700  
     12014-12-02  Michael Saboff  <msaboff@apple.com>
     2
     3        Change CallFrame::globalThisValue() to not use CallFrame::scope()
     4        https://bugs.webkit.org/show_bug.cgi?id=139202
     5
     6        Reviewed by Mark Lam.
     7
     8        Changed to use the globalThis() on the globalObject associated with the
     9        callee.  Moved the inline definition to JSGlobalObject.h instead of
     10        including JSGlobalObject.h in JSScope.h.  Also moved it as JSScope
     11        objects are no longer involved in getting the value.
     12
     13        * runtime/JSGlobalObject.h:
     14        (JSC::ExecState::globalThisValue):
     15        * runtime/JSScope.h:
     16        (JSC::ExecState::globalThisValue): Deleted.
     17
    1182014-12-02  Matthew Mirman  <mmirman@apple.com>
    219
  • trunk/Source/JavaScriptCore/runtime/JSGlobalObject.h

    r176508 r176700  
    675675}
    676676
     677inline JSObject* ExecState::globalThisValue() const
     678{
     679    return lexicalGlobalObject()->globalThis();
     680}
     681
    677682inline JSObject* JSScope::globalThis()
    678683{
  • trunk/Source/JavaScriptCore/runtime/JSScope.h

    r175118 r176700  
    245245}
    246246
    247 inline JSObject* ExecState::globalThisValue() const
    248 {
    249     return scope()->globalThis();
    250 }
    251 
    252247inline size_t JSScope::offsetOfNext()
    253248{
Note: See TracChangeset for help on using the changeset viewer.