Commit 04ac13de authored by Leszek Swirski's avatar Leszek Swirski Committed by Commit Bot

[ignition] Mark switches as being side-effect free

Bug: v8:6218
Change-Id: I53806585ee2ba5ea5bc49748a659cceb2eeaf501
Reviewed-on: https://chromium-review.googlesource.com/506668
Commit-Queue: Leszek Swirski <leszeks@chromium.org>
Reviewed-by: 's avatarRoss McIlroy <rmcilroy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#45337}
parent ce538f70
......@@ -626,7 +626,7 @@ class V8_EXPORT_PRIVATE Bytecodes final {
return (IsAccumulatorLoadWithoutEffects(bytecode) ||
IsRegisterLoadWithoutEffects(bytecode) ||
IsCompareWithoutEffects(bytecode) || bytecode == Bytecode::kNop ||
IsJumpWithoutEffects(bytecode));
IsJumpWithoutEffects(bytecode) || IsSwitch(bytecode));
}
// Returns true if the bytecode is Ldar or Star.
......
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