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

    r31560 r32652  
    3232// ------------------------------ MathObjectImp --------------------------------
    3333
    34 const ClassInfo MathObjectImp::info = { "Math", 0, &mathTable };
     34const ClassInfo MathObjectImp::info = { "Math", 0, 0, ExecState::mathTable };
    3535
    3636/* Source for math_object.lut.h
     
    7474bool MathObjectImp::getOwnPropertySlot(ExecState* exec, const Identifier& propertyName, PropertySlot &slot)
    7575{
    76     return getStaticPropertySlot<MathObjectImp, JSObject>(exec, &mathTable, this, propertyName, slot);
     76    return getStaticPropertySlot<MathObjectImp, JSObject>(exec, ExecState::mathTable(exec), this, propertyName, slot);
    7777}
    7878
Note: See TracChangeset for help on using the changeset viewer.