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

    r31746 r32652  
    3939// ------------------------------ StringInstance ----------------------------
    4040
    41 const ClassInfo StringInstance::info = { "String", 0, 0 };
     41const ClassInfo StringInstance::info = { "String", 0, 0, 0 };
    4242
    4343StringInstance::StringInstance(JSObject *proto)
     
    126126
    127127// ------------------------------ StringPrototype ---------------------------
    128 const ClassInfo StringPrototype::info = { "String", &StringInstance::info, &stringTable };
     128const ClassInfo StringPrototype::info = { "String", &StringInstance::info, 0, ExecState::stringTable };
    129129/* Source for string_object.lut.h
    130130@begin stringTable 26
     
    174174bool StringPrototype::getOwnPropertySlot(ExecState *exec, const Identifier& propertyName, PropertySlot &slot)
    175175{
    176   return getStaticFunctionSlot<StringInstance>(exec, &stringTable, this, propertyName, slot);
     176  return getStaticFunctionSlot<StringInstance>(exec, ExecState::stringTable(exec), this, propertyName, slot);
    177177}
    178178
Note: See TracChangeset for help on using the changeset viewer.