Ignore:
Timestamp:
Jan 4, 2010, 2:49:27 PM (15 years ago)
Author:
[email protected]
Message:

Rubber stamped by Geoff Garen.

Add an 'isIdentifier' to UStringImpl, use this where appropriate
(where previously 'identifierTable' was being tested).

  • API/JSClassRef.cpp:

(OpaqueJSClass::~OpaqueJSClass):
(OpaqueJSClassContextData::OpaqueJSClassContextData):

  • runtime/Identifier.cpp:

(JSC::Identifier::addSlowCase):

  • runtime/Identifier.h:

(JSC::Identifier::add):

  • runtime/PropertyNameArray.cpp:

(JSC::PropertyNameArray::add):

  • runtime/UStringImpl.h:

(JSC::UStringImpl::isIdentifier):

File:
1 edited

Legend:

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

    r52346 r52762  
    213213PassRefPtr<UString::Rep> Identifier::addSlowCase(JSGlobalData* globalData, UString::Rep* r)
    214214{
    215     ASSERT(!r->identifierTable());
     215    ASSERT(!r->isIdentifier());
    216216    if (r->size() == 1) {
    217217        UChar c = r->data()[0];
    218218        if (c <= 0xFF)
    219219            r = globalData->smallStrings.singleCharacterStringRep(c);
    220             if (r->identifierTable()) {
     220            if (r->isIdentifier()) {
    221221#ifndef NDEBUG
    222222                checkSameIdentifierTable(globalData, r);
Note: See TracChangeset for help on using the changeset viewer.