Commit 816b4bfe authored by Milad Fa's avatar Milad Fa Committed by V8 LUCI CQ

[sparkplug] Fix compilation error on unsupported platforms

The following compilation error is thrown if a platform
does not have sparkplug implanted:

error: code will never be executed

Change-Id: Ifbf2162ec9580f86620ca2bfd1007d96da2a4138
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2992889
Commit-Queue: Toon Verwaest <verwaest@chromium.org>
Reviewed-by: 's avatarToon Verwaest <verwaest@chromium.org>
Cr-Commit-Position: refs/heads/master@{#75455}
parent 01b0a6a9
...@@ -347,7 +347,7 @@ RUNTIME_FUNCTION(Runtime_BytecodeBudgetInterruptFromBytecode) { ...@@ -347,7 +347,7 @@ RUNTIME_FUNCTION(Runtime_BytecodeBudgetInterruptFromBytecode) {
} }
if (CanCompileWithBaseline(isolate, function->shared()) && if (CanCompileWithBaseline(isolate, function->shared()) &&
!function->ActiveTierIsBaseline()) { !function->ActiveTierIsBaseline()) {
if (V8_LIKELY(FLAG_baseline_batch_compilation)) { if (FLAG_baseline_batch_compilation) {
isolate->baseline_batch_compiler()->EnqueueFunction(function); isolate->baseline_batch_compiler()->EnqueueFunction(function);
} else { } else {
IsCompiledScope is_compiled_scope( IsCompiledScope is_compiled_scope(
......
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