Changeset 6347 in webkit for trunk/JavaScriptCore/kjs/function.cpp
- Timestamp:
- Apr 9, 2004, 1:07:47 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/function.cpp
r5671 r6347 57 57 FunctionImp::FunctionImp(ExecState *exec, const Identifier &n) 58 58 : InternalFunctionImp( 59 static_cast<FunctionPrototypeImp*>(exec-> interpreter()->builtinFunctionPrototype().imp())59 static_cast<FunctionPrototypeImp*>(exec->lexicalInterpreter()->builtinFunctionPrototype().imp()) 60 60 ), param(0L), ident(n) 61 61 { … … 74 74 Value FunctionImp::call(ExecState *exec, Object &thisObj, const List &args) 75 75 { 76 Object &globalObj = exec-> interpreter()->globalObject();77 78 Debugger *dbg = exec-> interpreter()->imp()->debugger();76 Object &globalObj = exec->dynamicInterpreter()->globalObject(); 77 78 Debugger *dbg = exec->dynamicInterpreter()->imp()->debugger(); 79 79 int sid = -1; 80 80 int lineno = -1; … … 94 94 95 95 // enter a new execution context 96 ContextImp ctx(globalObj, exec-> interpreter()->imp(), thisObj, codeType(),96 ContextImp ctx(globalObj, exec->dynamicInterpreter()->imp(), thisObj, codeType(), 97 97 exec->context().imp(), this, &args); 98 ExecState newExec(exec-> interpreter(), &ctx);98 ExecState newExec(exec->dynamicInterpreter(), &ctx); 99 99 newExec.setException(exec->exception()); // could be null 100 100 … … 283 283 proto = Object(static_cast<ObjectImp*>(p.imp())); 284 284 else 285 proto = exec-> interpreter()->builtinObjectPrototype();285 proto = exec->lexicalInterpreter()->builtinObjectPrototype(); 286 286 287 287 Object obj(new ObjectImp(proto)); … … 315 315 // ECMA 10.1.8 316 316 ArgumentsImp::ArgumentsImp(ExecState *exec, FunctionImp *func) 317 : ArrayInstanceImp(exec-> interpreter()->builtinObjectPrototype().imp(), 0)317 : ArrayInstanceImp(exec->lexicalInterpreter()->builtinObjectPrototype().imp(), 0) 318 318 { 319 319 Value protect(this); … … 322 322 323 323 ArgumentsImp::ArgumentsImp(ExecState *exec, FunctionImp *func, const List &args) 324 : ArrayInstanceImp(exec-> interpreter()->builtinObjectPrototype().imp(), args)324 : ArrayInstanceImp(exec->lexicalInterpreter()->builtinObjectPrototype().imp(), args) 325 325 { 326 326 Value protect(this); … … 541 541 // enter a new execution context 542 542 Object thisVal(Object::dynamicCast(exec->context().thisValue())); 543 ContextImp ctx(exec-> interpreter()->globalObject(),544 exec-> interpreter()->imp(),543 ContextImp ctx(exec->dynamicInterpreter()->globalObject(), 544 exec->dynamicInterpreter()->imp(), 545 545 thisVal, 546 546 EvalCode, 547 547 exec->context().imp()); 548 548 549 ExecState newExec(exec-> interpreter(), &ctx);549 ExecState newExec(exec->dynamicInterpreter(), &ctx); 550 550 newExec.setException(exec->exception()); // could be null 551 551
Note:
See TracChangeset
for help on using the changeset viewer.