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.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.