Commit c24b5a2b authored by Liu Yu's avatar Liu Yu Committed by V8 LUCI CQ

[mips][nowasm] Fix compile errors

Port ec4fd32c

Change-Id: Ia952dc6f7478b90dc61ceb029f10feb79243d01d
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2918988
Auto-Submit: Liu yu <liuyu@loongson.cn>
Reviewed-by: 's avatarZhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Commit-Queue: Zhao Jiazhong <zhaojiazhong-hf@loongson.cn>
Cr-Commit-Position: refs/heads/master@{#74782}
parent 59d158d0
...@@ -277,10 +277,14 @@ void TurboAssembler::CallRecordWriteStub( ...@@ -277,10 +277,14 @@ void TurboAssembler::CallRecordWriteStub(
Pop(slot_parameter); Pop(slot_parameter);
Pop(object_parameter); Pop(object_parameter);
#if V8_ENABLE_WEBASSEMBLY
if (mode == StubCallMode::kCallWasmRuntimeStub) { if (mode == StubCallMode::kCallWasmRuntimeStub) {
auto wasm_target = auto wasm_target =
wasm::WasmCode::GetRecordWriteStub(remembered_set_action, fp_mode); wasm::WasmCode::GetRecordWriteStub(remembered_set_action, fp_mode);
Call(wasm_target, RelocInfo::WASM_STUB_CALL); 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);
......
...@@ -275,10 +275,14 @@ void TurboAssembler::CallRecordWriteStub( ...@@ -275,10 +275,14 @@ void TurboAssembler::CallRecordWriteStub(
Pop(slot_parameter); Pop(slot_parameter);
Pop(object_parameter); Pop(object_parameter);
#if V8_ENABLE_WEBASSEMBLY
if (mode == StubCallMode::kCallWasmRuntimeStub) { if (mode == StubCallMode::kCallWasmRuntimeStub) {
auto wasm_target = auto wasm_target =
wasm::WasmCode::GetRecordWriteStub(remembered_set_action, fp_mode); wasm::WasmCode::GetRecordWriteStub(remembered_set_action, fp_mode);
Call(wasm_target, RelocInfo::WASM_STUB_CALL); 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