Changeset 160094 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrameClosure.h
- Timestamp:
- Dec 4, 2013, 8:40:17 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrameClosure.h
r148696 r160094 27 27 #define CallFrameClosure_h 28 28 29 #include "ProtoCallFrame.h" 30 29 31 namespace JSC { 30 32 31 33 struct CallFrameClosure { 32 34 CallFrame* oldCallFrame; 35 #if ENABLE(LLINT_C_LOOP) 33 36 CallFrame* newCallFrame; 37 #else 38 ProtoCallFrame* newCallFrame; 39 #endif 34 40 JSFunction* function; 35 41 FunctionExecutable* functionExecutable; … … 52 58 { 53 59 newCallFrame->setScope(scope); 60 #if ENABLE(LLINT_C_LOOP) 54 61 // setArgument() takes an arg index that starts from 0 for the first 55 62 // argument after the 'this' value. Since both argumentCountIncludingThis 56 63 // and parameterCountIncludingThis includes the 'this' value, we need to 57 // subtract 1 from them to make i a valid argument index for setArgument().64 // subtract 1 from them to make it a valid argument index for setArgument(). 58 65 for (int i = argumentCountIncludingThis-1; i < parameterCountIncludingThis-1; ++i) 59 66 newCallFrame->setArgument(i, jsUndefined()); 67 #endif 60 68 } 61 69 };
Note:
See TracChangeset
for help on using the changeset viewer.