Changeset 28468 in webkit for trunk/JavaScriptCore/API/JSObjectRef.cpp
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/JSObjectRef.cpp
r27763 r28468 37 37 #include "JSGlobalObject.h" 38 38 39 #include "PropertyNameArray.h" 40 #include "function.h" 41 #include "function_object.h" 39 42 #include "identifier.h" 40 #include "function.h"41 43 #include "internal.h" 42 44 #include "object.h" 43 #include " PropertyNameArray.h"45 #include "object_object.h" 44 46 45 47 using namespace KJS; … … 74 76 75 77 if (!jsClass) 76 return toRef(new JSObject(exec->lexical Interpreter()->builtinObjectPrototype())); // slightly more efficient78 return toRef(new JSObject(exec->lexicalGlobalObject()->objectPrototype())); // slightly more efficient 77 79 78 80 JSValue* jsPrototype = jsClass->prototype(ctx); 79 81 if (!jsPrototype) 80 jsPrototype = exec->lexical Interpreter()->builtinObjectPrototype();82 jsPrototype = exec->lexicalGlobalObject()->objectPrototype(); 81 83 82 84 return toRef(new JSCallbackObject<JSObject>(exec, jsClass, jsPrototype, data)); … … 99 101 JSValue* jsPrototype = jsClass 100 102 ? jsClass->prototype(ctx) 101 : exec->dynamic Interpreter()->builtinObjectPrototype();103 : exec->dynamicGlobalObject()->objectPrototype(); 102 104 103 105 JSObject* constructor = new JSCallbackConstructor(exec, jsClass, callAsConstructor); … … 121 123 args.append(jsString(UString(bodyRep))); 122 124 123 JSObject* result = exec->dynamic Interpreter()->builtinFunction()->construct(exec, args, nameID, UString(sourceURLRep), startingLineNumber);125 JSObject* result = exec->dynamicGlobalObject()->functionConstructor()->construct(exec, args, nameID, UString(sourceURLRep), startingLineNumber); 124 126 if (exec->hadException()) { 125 127 if (exception) … … 275 277 276 278 if (!jsThisObject) 277 jsThisObject = exec->dynamic Interpreter()->globalObject();279 jsThisObject = exec->dynamicGlobalObject(); 278 280 279 281 List argList;
Note:
See TracChangeset
for help on using the changeset viewer.