Changeset 2792 in webkit for trunk/JavaScriptCore/kjs/internal.cpp
- Timestamp:
- Nov 20, 2002, 4:55:08 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/internal.cpp
r2783 r2792 356 356 // ------------------------------ ContextImp ----------------------------------- 357 357 358 359 358 // ECMA 10.2 360 359 ContextImp::ContextImp(Object &glob, ExecState *exec, Object &thisV, CodeType type, 361 ContextImp *_callingContext, FunctionImp *func, const List &args) 360 ContextImp *_callingContext, FunctionImp *func, const ArgumentList *args) 361 : _function(func), _arguments(args) 362 362 { 363 363 codeType = type; … … 366 366 // create and initialize activation object (ECMA 10.1.6) 367 367 if (type == FunctionCode || type == AnonymousCode ) { 368 activation = Object(new ActivationImp(exec ,func,args));368 activation = Object(new ActivationImp(exec)); 369 369 variable = activation; 370 370 } else { … … 782 782 else { 783 783 // execute the code 784 ExecState *exec1 = 0; 785 ContextImp *ctx = new ContextImp(globalObj, exec1, thisObj); 786 ExecState *newExec = new ExecState(m_interpreter,ctx); 787 788 res = progNode->execute(newExec); 789 790 delete newExec; 791 delete ctx; 784 ContextImp ctx(globalObj, 0, thisObj); 785 ExecState newExec(m_interpreter,&ctx); 786 res = progNode->execute(&newExec); 792 787 } 793 788
Note:
See TracChangeset
for help on using the changeset viewer.