Commit 3d9d4745 authored by Clemens Backes's avatar Clemens Backes Committed by V8 LUCI CQ

[nowasm] Fix compile error

This fixes a compile error if webassembly is disabled. It was introduced
in https://crrev.com/c/2902731.

R=cbruni@chromium.org

Cq-Include-Trybots: luci.v8.try:v8_linux64_no_wasm_compile_rel
Change-Id: Icf12b22d54dbd4710130e0f2b56c44f42ac86424
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2905602
Auto-Submit: Clemens Backes <clemensb@chromium.org>
Commit-Queue: Camillo Bruni <cbruni@chromium.org>
Reviewed-by: 's avatarCamillo Bruni <cbruni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#74687}
parent 80e2686d
...@@ -444,11 +444,15 @@ void TurboAssembler::CallRecordWriteStub( ...@@ -444,11 +444,15 @@ void TurboAssembler::CallRecordWriteStub(
// object_parameter <= object // object_parameter <= object
MovePair(slot_parameter, address, object_parameter, object); MovePair(slot_parameter, address, object_parameter, object);
#if V8_ENABLE_WEBASSEMBLY
if (mode == StubCallMode::kCallWasmRuntimeStub) { if (mode == StubCallMode::kCallWasmRuntimeStub) {
// Use {near_call} for direct Wasm call within a module. // Use {near_call} for direct Wasm call within a module.
auto wasm_target = auto wasm_target =
wasm::WasmCode::GetRecordWriteStub(remembered_set_action, fp_mode); wasm::WasmCode::GetRecordWriteStub(remembered_set_action, fp_mode);
near_call(wasm_target, RelocInfo::WASM_STUB_CALL); near_call(wasm_target, RelocInfo::WASM_STUB_CALL);
#else
if (false) {
#endif
} else { } else {
auto builtin_index = auto builtin_index =
Builtins::GetRecordWriteStub(remembered_set_action, fp_mode); Builtins::GetRecordWriteStub(remembered_set_action, fp_mode);
......
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