Changeset 100385 in webkit
- Timestamp:
- Nov 15, 2011, 5:53:29 PM (14 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r100375 r100385 1 2011-11-15 Geoffrey Garen <ggaren@apple.com> 2 3 Removed another use of ArgList that baked in the assumption that arguments 4 are forward in the regiter file. 5 6 Reviewed by Sam Weinig. 7 8 * dfg/DFGOperations.cpp: 9 * jit/JITStubs.cpp: 10 (JSC::DEFINE_STUB_FUNCTION): Use our new array creation API, instead of 11 working through ArgList. 12 13 * runtime/ArgList.h: Removed! 14 1 15 2011-11-15 Geoffrey Garen <ggaren@apple.com> 2 16 -
trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
r100375 r100385 774 774 EncodedJSValue DFG_OPERATION operationNewArray(ExecState* exec, void* start, size_t size) 775 775 { 776 ArgList argList(static_cast<Register*>(start), size); 777 return JSValue::encode(constructArray(exec, argList)); 776 return JSValue::encode(constructArray(exec, static_cast<JSValue*>(start), size)); 778 777 } 779 778 -
trunk/Source/JavaScriptCore/jit/JITStubs.cpp
r100375 r100385 2433 2433 STUB_INIT_STACK_FRAME(stackFrame); 2434 2434 2435 ArgList argList(&stackFrame.callFrame->registers()[stackFrame.args[0].int32()], stackFrame.args[1].int32()); 2436 return constructArray(stackFrame.callFrame, argList); 2435 return constructArray(stackFrame.callFrame, reinterpret_cast<JSValue*>(&stackFrame.callFrame->registers()[stackFrame.args[0].int32()]), stackFrame.args[1].int32()); 2437 2436 } 2438 2437 -
trunk/Source/JavaScriptCore/runtime/ArgList.h
r100375 r100385 192 192 } 193 193 194 ArgList(Register* args, int argCount)195 : m_args(reinterpret_cast<JSValue*>(args))196 , m_argCount(argCount)197 {198 ASSERT(argCount >= 0);199 }200 201 194 ArgList(const MarkedArgumentBuffer& args) 202 195 : m_args(reinterpret_cast<JSValue*>(const_cast<Register*>(args.begin())))
Note:
See TracChangeset
for help on using the changeset viewer.