[sparkplug] Simplify arch-guards to ENABLE_SPARKPLUG

There is still a place to simplify.

Bug: v8:11420, v8:11421
Change-Id: I774139c52d911323f162350532a493e70f518643
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3096885
Auto-Submit: Yahan Lu <yahan@iscas.ac.cn>
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: Leszek Swirski <leszeks@chromium.org>
Cr-Commit-Position: refs/heads/master@{#76296}
This commit is contained in:
Lu Yahan 2021-08-16 11:49:14 +08:00 committed by V8 LUCI CQ
parent 2e3b1bdd20
commit e74d6918fb
2 changed files with 3 additions and 6 deletions

View File

@ -6,9 +6,8 @@
// TODO(v8:11421): Remove #if once baseline compiler is ported to other // TODO(v8:11421): Remove #if once baseline compiler is ported to other
// architectures. // architectures.
#if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64 || \ #include "src/flags/flags.h"
V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_RISCV64 || V8_TARGET_ARCH_MIPS64 || \ #if ENABLE_SPARKPLUG
V8_TARGET_ARCH_MIPS
#include "src/baseline/baseline-compiler.h" #include "src/baseline/baseline-compiler.h"
#include "src/codegen/compiler.h" #include "src/codegen/compiler.h"

View File

@ -1053,9 +1053,7 @@ void Builtins::Generate_MemMove(MacroAssembler* masm) {
// TODO(v8:11421): Remove #if once baseline compiler is ported to other // TODO(v8:11421): Remove #if once baseline compiler is ported to other
// architectures. // architectures.
#if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM64 || \ #if ENABLE_SPARKPLUG
V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_RISCV64 || V8_TARGET_ARCH_MIPS64 || \
V8_TARGET_ARCH_MIPS
void Builtins::Generate_BaselineLeaveFrame(MacroAssembler* masm) { void Builtins::Generate_BaselineLeaveFrame(MacroAssembler* masm) {
EmitReturnBaseline(masm); EmitReturnBaseline(masm);
} }