Changeset 28468 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Dec 5, 2007, 6:31:41 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r28458 r28468 360 360 } 361 361 } 362 Debugger* dbg = exec->dynamic Interpreter()->debugger();362 Debugger* dbg = exec->dynamicGlobalObject()->debugger(); 363 363 if (dbg && !dbg->hasHandledException(exec, exceptionValue)) { 364 364 bool cont = dbg->exception(exec, currentSourceId(exec), m_line, exceptionValue); … … 393 393 bool StatementNode::hitStatement(ExecState* exec) 394 394 { 395 Debugger *dbg = exec->dynamic Interpreter()->debugger();395 Debugger *dbg = exec->dynamicGlobalObject()->debugger(); 396 396 if (dbg) 397 397 return dbg->atStatement(exec, currentSourceId(exec), firstLine(), lastLine()); … … 491 491 JSValue* RegExpNode::evaluate(ExecState* exec) 492 492 { 493 return exec->lexical Interpreter()->builtinRegExp()->createRegExpImp(exec, m_regExp);493 return exec->lexicalGlobalObject()->regExpConstructor()->createRegExpImp(exec, m_regExp); 494 494 } 495 495 … … 615 615 JSValue *ElementNode::evaluate(ExecState *exec) 616 616 { 617 JSObject *array = exec->lexical Interpreter()->builtinArray()->construct(exec, List::empty());617 JSObject *array = exec->lexicalGlobalObject()->arrayConstructor()->construct(exec, List::empty()); 618 618 int length = 0; 619 619 for (ElementNode *n = this; n; n = n->next.get()) { … … 646 646 length = opt ? array->get(exec, exec->propertyNames().length)->toInt32(exec) : 0; 647 647 } else { 648 JSValue *newArr = exec->lexical Interpreter()->builtinArray()->construct(exec,List::empty());648 JSValue *newArr = exec->lexicalGlobalObject()->arrayConstructor()->construct(exec,List::empty()); 649 649 array = static_cast<JSObject*>(newArr); 650 650 length = 0; … … 671 671 return list->evaluate(exec); 672 672 673 return exec->lexical Interpreter()->builtinObject()->construct(exec,List::empty());673 return exec->lexicalGlobalObject()->objectConstructor()->construct(exec,List::empty()); 674 674 } 675 675 … … 686 686 JSValue *PropertyListNode::evaluate(ExecState *exec) 687 687 { 688 JSObject *obj = exec->lexical Interpreter()->builtinObject()->construct(exec, List::empty());688 JSObject *obj = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, List::empty()); 689 689 690 690 for (PropertyListNode *p = this; p; p = p->next.get()) { … … 946 946 KJS_CHECKEXCEPTIONVALUE 947 947 948 JSObject *thisObj = exec->dynamic Interpreter()->globalObject();948 JSObject *thisObj = exec->dynamicGlobalObject(); 949 949 950 950 return func->call(exec, thisObj, argList); … … 1001 1001 // that in host objects you always get a valid object for this. 1002 1002 if (thisObj->isActivation()) 1003 thisObj = exec->dynamic Interpreter()->globalObject();1003 thisObj = exec->dynamicGlobalObject(); 1004 1004 1005 1005 return func->call(exec, thisObj, argList); … … 1062 1062 KJS_CHECKEXCEPTIONVALUE 1063 1063 1064 return func->call(exec, exec->dynamic Interpreter()->globalObject(), argList);1064 return func->call(exec, exec->dynamicGlobalObject(), argList); 1065 1065 } 1066 1066 … … 3784 3784 exec->popIteration(); 3785 3785 3786 if (exec->dynamic Interpreter()->timedOut())3786 if (exec->dynamicGlobalObject()->timedOut()) 3787 3787 return Completion(Interrupted); 3788 3788 … … 3837 3837 exec->popIteration(); 3838 3838 3839 if (exec->dynamic Interpreter()->timedOut())3839 if (exec->dynamicGlobalObject()->timedOut()) 3840 3840 return Completion(Interrupted); 3841 3841 … … 3903 3903 } 3904 3904 3905 if (exec->dynamic Interpreter()->timedOut())3905 if (exec->dynamicGlobalObject()->timedOut()) 3906 3906 return Completion(Interrupted); 3907 3907 … … 4581 4581 processDeclarations(exec); 4582 4582 4583 if (Debugger* dbg = exec->dynamic Interpreter()->debugger()) {4583 if (Debugger* dbg = exec->dynamicGlobalObject()->debugger()) { 4584 4584 if (!dbg->callEvent(exec, sourceId(), lineNo(), exec->function(), *exec->arguments())) { 4585 4585 dbg->imp()->abort(); … … 4590 4590 Completion completion = BlockNode::execute(exec); 4591 4591 4592 if (Debugger* dbg = exec->dynamic Interpreter()->debugger()) {4592 if (Debugger* dbg = exec->dynamicGlobalObject()->debugger()) { 4593 4593 if (completion.complType() == Throw) 4594 4594 exec->setException(completion.value()); … … 4621 4621 FunctionImp *func = new FunctionImp(exec, ident, body.get(), exec->scopeChain()); 4622 4622 4623 JSObject *proto = exec->lexical Interpreter()->builtinObject()->construct(exec, List::empty());4623 JSObject *proto = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, List::empty()); 4624 4624 proto->put(exec, exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum); 4625 4625 func->put(exec, exec->propertyNames().prototype, proto, Internal|DontDelete); … … 4657 4657 4658 4658 FunctionImp* func = new FunctionImp(exec, ident, body.get(), exec->scopeChain()); 4659 JSObject* proto = exec->lexical Interpreter()->builtinObject()->construct(exec, List::empty());4659 JSObject* proto = exec->lexicalGlobalObject()->objectConstructor()->construct(exec, List::empty()); 4660 4660 proto->put(exec, exec->propertyNames().constructor, func, ReadOnly | DontDelete | DontEnum); 4661 4661 func->put(exec, exec->propertyNames().prototype, proto, Internal | DontDelete);
Note:
See TracChangeset
for help on using the changeset viewer.