Changeset 32652 in webkit for trunk/JavaScriptCore/kjs/lexer.cpp


Ignore:
Timestamp:
Apr 28, 2008, 11:22:14 AM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin.

Fix run-webkit-tests --threading
and provisionally fix <https://bugs.webkit.org/show_bug.cgi?id=18661>
Proxy server issue in Sunday's Nightly

Changed ClassInfo objects for built-in objects to hold a getter function returning
a per-thread instance. This makes it safe to share these ClassInfo objects between threads -
and these are the only ones that need to be shared.

File:
1 edited

Legend:

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

    r31948 r32652  
    8989    , next2(0)
    9090    , next3(0)
     91    , mainTable(KJS::mainTable)
    9192{
    9293    m_buffer8.reserveCapacity(initialReadBufferCapacity);
     
    9495    m_strings.reserveCapacity(initialStringTableCapacity);
    9596    m_identifiers.reserveCapacity(initialStringTableCapacity);
     97}
     98
     99Lexer::~Lexer()
     100{
     101    delete[] mainTable.table;
    96102}
    97103
Note: See TracChangeset for help on using the changeset viewer.