Changeset 2851 in webkit for trunk/JavaScriptCore/kjs/nodes.cpp
- Timestamp:
- Nov 24, 2002, 2:37:44 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/nodes.cpp
r2847 r2851 206 206 Value ThisNode::evaluate(ExecState *exec) 207 207 { 208 return exec->context(). thisValue();208 return exec->context().imp()->thisValue(); 209 209 } 210 210 … … 219 219 Reference ResolveNode::evaluateReference(ExecState *exec) 220 220 { 221 ScopeChain chain = exec->context(). scopeChain();221 ScopeChain chain = exec->context().imp()->scopeChain(); 222 222 223 223 while (!chain.isEmpty()) { … … 1633 1633 Value VarDeclNode::evaluate(ExecState *exec) 1634 1634 { 1635 Object variable = Object::dynamicCast(exec->context(). variableObject());1635 Object variable = Object::dynamicCast(exec->context().imp()->variableObject()); 1636 1636 1637 1637 Value val; … … 1657 1657 void VarDeclNode::processVarDecls(ExecState *exec) 1658 1658 { 1659 Object variable = exec->context(). variableObject();1659 Object variable = exec->context().imp()->variableObject(); 1660 1660 variable.put(exec,ident, Undefined(), DontDelete); 1661 1661 } … … 2780 2780 void FuncDeclNode::processFuncDecl(ExecState *exec) 2781 2781 { 2782 const ScopeChain sc = exec->context().imp()->scopeChain();2783 2784 2782 // TODO: let this be an object with [[Class]] property "Function" 2785 FunctionImp *fimp = new DeclaredFunctionImp(exec, ident, body, sc);2783 FunctionImp *fimp = new DeclaredFunctionImp(exec, ident, body, exec->context().imp()->scopeChain()); 2786 2784 Object func(fimp); // protect from GC 2787 2785 … … 2835 2833 Value FuncExprNode::evaluate(ExecState *exec) 2836 2834 { 2837 const ScopeChain sc = exec->context().scopeChain(); 2838 FunctionImp *fimp = new DeclaredFunctionImp(exec, Identifier::null, body, sc); 2835 FunctionImp *fimp = new DeclaredFunctionImp(exec, Identifier::null, body, exec->context().imp()->scopeChain()); 2839 2836 Value ret(fimp); 2840 2837 List empty;
Note:
See TracChangeset
for help on using the changeset viewer.