Ignore:
Timestamp:
Nov 9, 2011, 3:21:56 PM (14 years ago)
Author:
[email protected]
Message:

De-virtualize JSVariableObject::isDynamicScope
https://bugs.webkit.org/show_bug.cgi?id=71933

Reviewed by Geoffrey Garen.

  • runtime/JSActivation.cpp:
  • runtime/JSActivation.h: Inlined and de-virtualized isDynamicScope

(JSC::JSActivation::isDynamicScope):

  • runtime/JSGlobalObject.cpp:
  • runtime/JSGlobalObject.h: Inlined and de-virtualized isDynamicScope

(JSC::JSGlobalObject::isDynamicScope):

  • runtime/JSStaticScopeObject.cpp:
  • runtime/JSStaticScopeObject.h: Inlined and de-virtualized isDynamicScope

(JSC::JSStaticScopeObject::createStructure): Changed createStructure to use new JSType
(JSC::JSStaticScopeObject::isDynamicScope):

  • runtime/JSType.h: Added new type for JSStaticScopeObject
  • runtime/JSVariableObject.cpp: De-virtualized and added an implementation that checks the

object's type and calls the corresponding implementation.
(JSC::JSVariableObject::isDynamicScope):

  • runtime/JSVariableObject.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/JSActivation.cpp

    r99497 r99768  
    210210}
    211211
    212 bool JSActivation::isDynamicScope(bool& requiresDynamicChecks) const
    213 {
    214     requiresDynamicChecks = m_requiresDynamicChecks;
    215     return false;
    216 }
    217 
    218212JSValue JSActivation::argumentsGetter(ExecState*, JSValue slotBase, const Identifier&)
    219213{
Note: See TracChangeset for help on using the changeset viewer.