Ignore:
Timestamp:
Oct 20, 2008, 11:08:06 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-10-20 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Fix for https://bugs.webkit.org/show_bug.cgi?id=21766
REGRESSION: 12 JSC tests fail

The JSGlobalObject was mutating the shared nullProtoStructureID when
used in jsc. Instead of using nullProtoStructureID, use a new StructureID.

  • API/JSCallbackObject.h:
  • API/JSCallbackObjectFunctions.h: (JSC::::JSCallbackObject):
  • API/JSContextRef.cpp: (JSGlobalContextCreateInGroup):
  • kjs/JSGlobalObject.h: (JSC::JSGlobalObject::JSGlobalObject):
  • kjs/Shell.cpp: (GlobalObject::GlobalObject): (jscmain):

JavaScriptGlue:

2008-10-20 Sam Weinig <[email protected]>

Reviewed by Cameron Zwarich.

Fix for https://bugs.webkit.org/show_bug.cgi?id=21766
REGRESSION: 12 JSC tests fail

The JSGlobalObject constructor no longer takes a JSGlobalData
as an argument.

  • JSRun.cpp: (JSRun::JSRun):
  • JSRun.h: (JSGlueGlobalObject::JSGlueGlobalObject):
  • JSUtils.cpp: (getThreadGlobalExecState):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/JSGlobalObject.h

    r37730 r37759  
    142142        void* operator new(size_t, JSGlobalData*);
    143143
    144         explicit JSGlobalObject(JSGlobalData* globalData)
    145             : JSVariableObject(globalData->nullProtoStructureID, new JSGlobalObjectData)
     144        explicit JSGlobalObject()
     145            : JSVariableObject(JSGlobalObject::createStructureID(jsNull()), new JSGlobalObjectData)
    146146        {
    147147            init(this);
Note: See TracChangeset for help on using the changeset viewer.