Changeset 27344 in webkit for trunk/JavaScriptCore/kjs/ExecState.cpp
- Timestamp:
- Nov 1, 2007, 1:36:58 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/ExecState.cpp
r27339 r27344 52 52 // create and initialize activation object (ECMA 10.1.6) 53 53 if (type == FunctionCode) { 54 m_activation = new ActivationImp( func, *args);54 m_activation = new ActivationImp(this); 55 55 m_variable = m_activation; 56 56 } else { … … 88 88 { 89 89 m_interpreter->setCurrentExec(m_savedExecState); 90 91 // The arguments list is only needed to potentially create the arguments object,92 // which isn't accessible from nested scopes so we can discard the list as soon93 // as the function is done running.94 // This prevents lists of Lists from building up, waiting to be garbage collected95 ActivationImp* activation = static_cast<ActivationImp*>(m_activation);96 if (activation)97 activation->releaseArguments();98 90 } 99 91
Note:
See TracChangeset
for help on using the changeset viewer.