Changeset 37586 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 14, 2008, 9:22:20 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin Adler.

https://bugs.webkit.org/show_bug.cgi?id=20256
Array.push and other standard methods disappear

  • kjs/JSGlobalData.cpp: (JSC::JSGlobalData::JSGlobalData): (JSC::JSGlobalData::~JSGlobalData): Don't use static hash tables even on platforms that don't enable JSC_MULTIPLE_THREADS - these tables reference IdentifierTable, which is always per-GlobalData.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/ChangeLog

    r37581 r37586  
     12008-10-14  Alexey Proskuryakov  <[email protected]>
     2
     3        Reviewed by Darin Adler.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=20256
     6        Array.push and other standard methods disappear
     7
     8        * kjs/JSGlobalData.cpp:
     9        (JSC::JSGlobalData::JSGlobalData):
     10        (JSC::JSGlobalData::~JSGlobalData):
     11        Don't use static hash tables even on platforms that don't enable JSC_MULTIPLE_THREADS -
     12        these tables reference IdentifierTable, which is always per-GlobalData.
     13
    1142008-10-14  Maciej Stachowiak  <[email protected]>
    215
  • trunk/JavaScriptCore/kjs/JSGlobalData.cpp

    r37563 r37586  
    6262    : machine(new Machine)
    6363    , exception(0)
    64 #if ENABLE(JSC_MULTIPLE_THREADS)
    6564    , arrayTable(new HashTable(JSC::arrayTable))
    6665    , dateTable(new HashTable(JSC::dateTable))
     
    7069    , regExpConstructorTable(new HashTable(JSC::regExpConstructorTable))
    7170    , stringTable(new HashTable(JSC::stringTable))
    72 #else
    73     , arrayTable(&JSC::arrayTable)
    74     , dateTable(&JSC::dateTable)
    75     , mathTable(&JSC::mathTable)
    76     , numberTable(&JSC::numberTable)
    77     , regExpTable(&JSC::regExpTable)
    78     , regExpConstructorTable(&JSC::regExpConstructorTable)
    79     , stringTable(&JSC::stringTable)
    80 #endif
    8171    , nullProtoStructureID(JSObject::createStructureID(jsNull()))
    8272    , activationStructureID(JSActivation::createStructureID(jsNull()))
     
    10999#endif
    110100
    111 #if ENABLE(JSC_MULTIPLE_THREADS)
    112101    arrayTable->deleteTable();
    113102    dateTable->deleteTable();
     
    124113    delete regExpConstructorTable;
    125114    delete stringTable;
    126 #endif
    127115
    128116    delete parser;
Note: See TracChangeset for help on using the changeset viewer.