| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index eb2adb826ceb3672ff84d0d7890851b09d257f22..1bc86ed8f976af4208179ce38fde62f0c3cff74d 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -2956,8 +2956,10 @@ void WasmGraphBuilder::BuildWasmInterpreterEntry(
|
| sig->return_count() == 0 ? 0 : 1 << ElementSizeLog2Of(sig->GetReturn(0));
|
|
|
| // Get a stack slot for the arguments.
|
| - Node* arg_buffer = graph()->NewNode(jsgraph()->machine()->StackSlot(
|
| - std::max(args_size_bytes, return_size_bytes)));
|
| + Node* arg_buffer = args_size_bytes == 0 && return_size_bytes == 0
|
| + ? jsgraph()->IntPtrConstant(0)
|
| + : graph()->NewNode(jsgraph()->machine()->StackSlot(
|
| + std::max(args_size_bytes, return_size_bytes)));
|
|
|
| // Now store all our arguments to the buffer.
|
| int param_index = 0;
|
|
|