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/number_object.cpp

    r31948 r32652  
    3535// ------------------------------ NumberInstance ----------------------------
    3636
    37 const ClassInfo NumberInstance::info = { "Number", 0, 0 };
     37const ClassInfo NumberInstance::info = { "Number", 0, 0, 0 };
    3838
    3939NumberInstance::NumberInstance(JSObject* proto)
     
    451451// ------------------------------ NumberObjectImp ------------------------------
    452452
    453 const ClassInfo NumberObjectImp::info = { "Function", &InternalFunctionImp::info, &numberTable };
     453const ClassInfo NumberObjectImp::info = { "Function", &InternalFunctionImp::info, 0, ExecState::numberTable };
    454454
    455455/* Source for number_object.lut.h
     
    474474bool NumberObjectImp::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot& slot)
    475475{
    476     return getStaticValueSlot<NumberObjectImp, InternalFunctionImp>(exec, &numberTable, this, propertyName, slot);
     476    return getStaticValueSlot<NumberObjectImp, InternalFunctionImp>(exec, ExecState::numberTable(exec), this, propertyName, slot);
    477477}
    478478
Note: See TracChangeset for help on using the changeset viewer.