| Index: src/compiler/wasm-compiler.cc
|
| diff --git a/src/compiler/wasm-compiler.cc b/src/compiler/wasm-compiler.cc
|
| index 9075e16bd2c1a85f507fbd934aa0e0366fe62687..85048dbfce947897291ab3f1986b3a45f61fe904 100644
|
| --- a/src/compiler/wasm-compiler.cc
|
| +++ b/src/compiler/wasm-compiler.cc
|
| @@ -2923,8 +2923,7 @@ void WasmGraphBuilder::BuildWasmInterpreterEntry(
|
| // Compute size for the argument buffer.
|
| int args_size_bytes = 0;
|
| for (int i = 0; i < wasm_count; i++) {
|
| - args_size_bytes +=
|
| - RoundUpToMultipleOfPowOf2(1 << ElementSizeLog2Of(sig->GetParam(i)), 8);
|
| + args_size_bytes += 1 << ElementSizeLog2Of(sig->GetParam(i));
|
| }
|
|
|
| // The return value is also passed via this buffer:
|
| @@ -2969,10 +2968,8 @@ void WasmGraphBuilder::BuildWasmInterpreterEntry(
|
| *effect_ =
|
| graph()->NewNode(jsgraph()->machine()->Store(store_rep), arg_buffer,
|
| Int32Constant(offset), param, *effect_, *control_);
|
| - offset += RoundUpToMultipleOfPowOf2(1 << ElementSizeLog2Of(param_rep), 8);
|
| + offset += 1 << ElementSizeLog2Of(param_rep);
|
| }
|
| -
|
| - DCHECK(IsAligned(offset, 8));
|
| }
|
| DCHECK_EQ(param_count, param_index);
|
| DCHECK_EQ(args_size_bytes, offset);
|
| @@ -3950,10 +3947,7 @@ Handle<Code> CompileWasmInterpreterEntry(Isolate* isolate, uint32_t func_index,
|
| Zone zone(isolate->allocator(), ZONE_NAME);
|
| Graph graph(&zone);
|
| CommonOperatorBuilder common(&zone);
|
| - MachineOperatorBuilder machine(
|
| - &zone, MachineType::PointerRepresentation(),
|
| - InstructionSelector::SupportedMachineOperatorFlags(),
|
| - InstructionSelector::AlignmentRequirements());
|
| + MachineOperatorBuilder machine(&zone);
|
| JSGraph jsgraph(isolate, &graph, &common, nullptr, nullptr, &machine);
|
|
|
| Node* control = nullptr;
|
|
|