Ignore:
Timestamp:
Mar 9, 2010, 3:32:58 PM (15 years ago)
Author:
[email protected]
Message:

This caused a performance regression, by breaking the code
generator's logic to calculate the skip level for resolving
variables (traced by rdar:7683350) Reverting for now.

Reviewed by NOBODY (reverting r54510).

  • parser/Grammar.y:
  • parser/NodeConstructors.h:

(JSC::ContinueNode::ContinueNode):
(JSC::BreakNode::BreakNode):
(JSC::ForInNode::ForInNode):

  • runtime/CommonIdentifiers.cpp:

(JSC::CommonIdentifiers::CommonIdentifiers):

  • runtime/CommonIdentifiers.h:
  • runtime/FunctionPrototype.cpp:

(JSC::FunctionPrototype::FunctionPrototype):

  • runtime/Identifier.cpp:

(JSC::Identifier::add):

  • runtime/PropertyNameArray.cpp:

(JSC::PropertyNameArray::add):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Identifier.cpp

    r55599 r55751  
    125125PassRefPtr<UString::Rep> Identifier::add(JSGlobalData* globalData, const char* c)
    126126{
    127     ASSERT(c);
    128 
     127    if (!c) {
     128        UString::Rep* rep = UString::null().rep();
     129        rep->hash();
     130        return rep;
     131    }
    129132    if (!c[0]) {
    130133        UString::Rep::empty().hash();
Note: See TracChangeset for help on using the changeset viewer.