Commit 2ba72e40 authored by Clemens Hammacher's avatar Clemens Hammacher Committed by Commit Bot

[wasm] Minor fixes

Minor fixes of things found in the code walkthrough.

R=titzer@chromium.org

Bug: v8:8015
Change-Id: If28be312fb7b8e5add214161a98d25145cdf8de5
Reviewed-on: https://chromium-review.googlesource.com/1224433
Commit-Queue: Clemens Hammacher <clemensh@chromium.org>
Reviewed-by: 's avatarBen Titzer <titzer@chromium.org>
Cr-Commit-Position: refs/heads/master@{#55873}
parent ec348ef1
......@@ -4678,9 +4678,7 @@ class WasmWrapperGraphBuilder : public WasmGraphBuilder {
// We are passing the raw arg_buffer here. To the GC and other parts, it
// looks like a Smi (lowest bit not set). In the runtime function however,
// don't call Smi::value on it, but just cast it to a byte pointer.
Node* parameters[] = {
jsgraph()->SmiConstant(func_index), arg_buffer,
};
Node* parameters[] = {jsgraph()->SmiConstant(func_index), arg_buffer};
BuildCallToRuntime(Runtime::kWasmRunInterpreter, parameters,
arraysize(parameters));
......
......@@ -543,7 +543,7 @@ class WasmExportedFunctionData : public Struct {
class WasmDebugInfo : public Struct, public NeverReadOnlySpaceObject {
public:
DECL_ACCESSORS(wasm_instance, WasmInstanceObject)
DECL_ACCESSORS(interpreter_handle, Object);
DECL_ACCESSORS(interpreter_handle, Object); // Foreign or undefined
DECL_ACCESSORS(interpreted_functions, FixedArray);
DECL_OPTIONAL_ACCESSORS(locals_names, FixedArray)
DECL_OPTIONAL_ACCESSORS(c_wasm_entries, FixedArray)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment