Ignore:
Timestamp:
Sep 9, 2008, 2:00:58 AM (17 years ago)
Author:
[email protected]
Message:

Fix builds using the "debug" variant.

Rubber-stamped by Oliver Hunt.

This reverts r36130 and tweaks Identifier to export the same symbols for Debug
and Release configurations.

(JSC::Identifier::addSlowCase): #ifdef the call to checkSameIdentifierTable so that
there is no overhead in Release builds.
(JSC::Identifier::checkSameIdentifierTable): Add empty functions for Release builds.

  • kjs/identifier.h:

(JSC::Identifier::add): #ifdef the calls to checkSameIdentifierTable so that there is
no overhead in Release builds, and remove the inline definitions of checkSameIdentifierTable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/identifier.cpp

    r36263 r36291  
    214214            r = globalData->smallStrings.singleCharacterStringRep(c);
    215215            if (r->identifierTable()) {
     216#ifndef NDEBUG
    216217                checkSameIdentifierTable(globalData, r);
     218#endif
    217219                return r;
    218220            }
     
    247249}
    248250
     251#else
     252
     253void Identifier::checkSameIdentifierTable(ExecState*, UString::Rep*)
     254{
     255}
     256
     257void Identifier::checkSameIdentifierTable(JSGlobalData*, UString::Rep*)
     258{
     259}
     260
    249261#endif
    250262
Note: See TracChangeset for help on using the changeset viewer.