Changeset 37759 in webkit for trunk/JavaScriptCore/kjs/Shell.cpp


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

    r37684 r37759  
    152152class GlobalObject : public JSGlobalObject {
    153153public:
    154     GlobalObject(JSGlobalData*, const Vector<UString>& arguments);
     154    GlobalObject(const Vector<UString>& arguments);
    155155    virtual UString className() const { return "global"; }
    156156};
     
    158158ASSERT_CLASS_FITS_IN_CELL(GlobalObject);
    159159
    160 GlobalObject::GlobalObject(JSGlobalData* globalData, const Vector<UString>& arguments)
    161     : JSGlobalObject(globalData)
     160GlobalObject::GlobalObject(const Vector<UString>& arguments)
     161    : JSGlobalObject()
    162162{
    163163    putDirectFunction(globalExec(), new (globalExec()) PrototypeFunction(globalExec(), prototypeFunctionStructure(), 1, Identifier(globalExec(), "debug"), functionDebug));
     
    464464    parseArguments(argc, argv, options);
    465465
    466     GlobalObject* globalObject = new (globalData) GlobalObject(globalData, options.arguments);
     466    GlobalObject* globalObject = new (globalData) GlobalObject(options.arguments);
    467467    bool success = runWithScripts(globalObject, options.fileNames, options.prettyPrint, options.dump);
    468468    if (options.interactive && success)
Note: See TracChangeset for help on using the changeset viewer.