Ignore:
Timestamp:
Feb 19, 2017, 7:59:19 PM (8 years ago)
Author:
[email protected]
Message:

functionTestWasmModuleFunctions() should use a MarkedArgumentBuffer for storing args instead of a Vector.
https://bugs.webkit.org/show_bug.cgi?id=168574

Reviewed by Filip Pizlo.

  • jsc.cpp:

(callWasmFunction):
(functionTestWasmModuleFunctions):

  • runtime/ArgList.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r212616 r212620  
    30703070}
    30713071
    3072 static JSValue callWasmFunction(VM* vm, JSGlobalObject* globalObject, JSWebAssemblyCallee* wasmCallee, Vector<JSValue>& boxedArgs)
     3072// FIXME: https://bugs.webkit.org/show_bug.cgi?id=168582.
     3073static JSValue callWasmFunction(VM* vm, JSGlobalObject* globalObject, JSWebAssemblyCallee* wasmCallee, const ArgList& boxedArgs)
    30733074{
    30743075    JSValue firstArgument;
     
    31363137            JSArray* arguments = jsCast<JSArray*>(test->getIndexQuickly(1));
    31373138
    3138             Vector<JSValue> boxedArgs;
     3139            MarkedArgumentBuffer boxedArgs;
    31393140            for (unsigned argIndex = 0; argIndex < arguments->length(); ++argIndex)
    31403141                boxedArgs.append(box(exec, vm, arguments->getIndexQuickly(argIndex)));
     
    31513152                CommaPrinter comma(", ");
    31523153                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)));
    31543155                dataLogLn();
    31553156
Note: See TracChangeset for help on using the changeset viewer.