Changeset 212620 in webkit
- Timestamp:
- Feb 19, 2017, 7:59:19 PM (8 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r212618 r212620 1 2017-02-19 Mark Lam <mark.lam@apple.com> 2 3 functionTestWasmModuleFunctions() should use a MarkedArgumentBuffer for storing args instead of a Vector. 4 https://bugs.webkit.org/show_bug.cgi?id=168574 5 6 Reviewed by Filip Pizlo. 7 8 * jsc.cpp: 9 (callWasmFunction): 10 (functionTestWasmModuleFunctions): 11 * runtime/ArgList.h: 12 1 13 2017-02-19 Mark Lam <mark.lam@apple.com> 2 14 -
trunk/Source/JavaScriptCore/jsc.cpp
r212616 r212620 3070 3070 } 3071 3071 3072 static JSValue callWasmFunction(VM* vm, JSGlobalObject* globalObject, JSWebAssemblyCallee* wasmCallee, Vector<JSValue>& boxedArgs) 3072 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=168582. 3073 static JSValue callWasmFunction(VM* vm, JSGlobalObject* globalObject, JSWebAssemblyCallee* wasmCallee, const ArgList& boxedArgs) 3073 3074 { 3074 3075 JSValue firstArgument; … … 3136 3137 JSArray* arguments = jsCast<JSArray*>(test->getIndexQuickly(1)); 3137 3138 3138 Vector<JSValue>boxedArgs;3139 MarkedArgumentBuffer boxedArgs; 3139 3140 for (unsigned argIndex = 0; argIndex < arguments->length(); ++argIndex) 3140 3141 boxedArgs.append(box(exec, vm, arguments->getIndexQuickly(argIndex))); … … 3151 3152 CommaPrinter comma(", "); 3152 3153 for (unsigned argIndex = 0; argIndex < arguments->length(); ++argIndex) 3153 dataLog(comma, valueWithTypeOfWasmValue(exec, vm, boxedArgs [argIndex], arguments->getIndexQuickly(argIndex)));3154 dataLog(comma, valueWithTypeOfWasmValue(exec, vm, boxedArgs.at(argIndex), arguments->getIndexQuickly(argIndex))); 3154 3155 dataLogLn(); 3155 3156 -
trunk/Source/JavaScriptCore/runtime/ArgList.h
r212618 r212620 165 165 JS_EXPORT_PRIVATE void getSlice(int startIndex, ArgList& result) const; 166 166 167 private: 167 // FIXME: This is only made public as a work around for jsc's test helper function, 168 // callWasmFunction() to use. Make this a private method again once we can remove 169 // callWasmFunction(). 170 // https://bugs.webkit.org/show_bug.cgi?id=168582 168 171 JSValue* data() const { return m_args; } 169 172 173 private: 170 174 JSValue* m_args; 171 175 int m_argCount;
Note:
See TracChangeset
for help on using the changeset viewer.