Ignore:
Timestamp:
Aug 29, 2013, 4:36:43 PM (12 years ago)
Author:
Brent Fulgham
Message:

[Windows] Unreviewed build fix after r154847.
If you are going to exclude promises, actually exclude the build components.

  • interpreter/CallFrame.h: Exclude promise declarations
  • runtime/JSGlobalObject.cpp:

(JSC::JSGlobalObject::reset): Exclude promise code.
(JSC::JSGlobalObject::visitChildren): Ditto.

  • runtime/VM.cpp: Ditto.

(JSC::VM::VM):
(JSC::VM::~VM):

  • runtime/VM.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/runtime/VM.cpp

    r154797 r154853  
    107107extern const HashTable regExpPrototypeTable;
    108108extern const HashTable stringConstructorTable;
     109#if ENABLE(PROMISES)
    109110extern const HashTable promisePrototypeTable;
    110111extern const HashTable promiseConstructorTable;
    111112extern const HashTable promiseResolverPrototypeTable;
     113#endif
    112114
    113115// Note: Platform.h will enforce that ENABLE(ASSEMBLER) is true if either
     
    170172    , regExpPrototypeTable(fastNew<HashTable>(JSC::regExpPrototypeTable))
    171173    , stringConstructorTable(fastNew<HashTable>(JSC::stringConstructorTable))
     174#if ENABLE(PROMISES)
    172175    , promisePrototypeTable(fastNew<HashTable>(JSC::promisePrototypeTable))
    173176    , promiseConstructorTable(fastNew<HashTable>(JSC::promiseConstructorTable))
    174177    , promiseResolverPrototypeTable(fastNew<HashTable>(JSC::promiseResolverPrototypeTable))
     178#endif
    175179    , identifierTable(vmType == Default ? wtfThreadData().currentIdentifierTable() : createIdentifierTable())
    176180    , propertyNames(new CommonIdentifiers(this))
     
    322326    regExpPrototypeTable->deleteTable();
    323327    stringConstructorTable->deleteTable();
     328#if ENABLE(PROMISES)
    324329    promisePrototypeTable->deleteTable();
    325330    promiseConstructorTable->deleteTable();
    326331    promiseResolverPrototypeTable->deleteTable();
     332#endif
    327333
    328334    fastDelete(const_cast<HashTable*>(arrayConstructorTable));
     
    343349    fastDelete(const_cast<HashTable*>(regExpPrototypeTable));
    344350    fastDelete(const_cast<HashTable*>(stringConstructorTable));
     351#if ENABLE(PROMISES)
    345352    fastDelete(const_cast<HashTable*>(promisePrototypeTable));
    346353    fastDelete(const_cast<HashTable*>(promiseConstructorTable));
    347354    fastDelete(const_cast<HashTable*>(promiseResolverPrototypeTable));
     355#endif
    348356
    349357    delete emptyList;
Note: See TracChangeset for help on using the changeset viewer.