Changeset 36291 in webkit for trunk/JavaScriptCore/kjs


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.

Location:
trunk/JavaScriptCore/kjs
Files:
2 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
  • trunk/JavaScriptCore/kjs/identifier.h

    r36263 r36291  
    9393        {
    9494            if (r->identifierTable()) {
     95#ifndef NDEBUG
    9596                checkSameIdentifierTable(exec, r);
     97#endif
    9698                return r;
    9799            }
     
    101103        {
    102104            if (r->identifierTable()) {
     105#ifndef NDEBUG
    103106                checkSameIdentifierTable(globalData, r);
     107#endif
    104108                return r;
    105109            }
     
    132136    void deleteIdentifierTable(IdentifierTable*);
    133137
    134 #ifdef NDEBUG
    135     inline void Identifier::checkSameIdentifierTable(ExecState*, UString::Rep*) { }
    136     inline void Identifier::checkSameIdentifierTable(JSGlobalData*, UString::Rep*) { }
    137 #endif
    138 
    139138} // namespace JSC
    140139
Note: See TracChangeset for help on using the changeset viewer.