Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1787)

Unified Diff: src/interpreter/bytecodes.cc

Issue 2042633002: [interpreter] Ensure optimizations preserve source positions. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/interpreter/bytecodes.cc
diff --git a/src/interpreter/bytecodes.cc b/src/interpreter/bytecodes.cc
index 46134b7f1d418c52dbecbfe82775ad20586f08cf..b3ec6a6162408edd4f18f042afbde13ec98ad943 100644
--- a/src/interpreter/bytecodes.cc
+++ b/src/interpreter/bytecodes.cc
@@ -492,8 +492,9 @@ bool Bytecodes::IsWithoutExternalSideEffects(Bytecode bytecode) {
// These bytecodes only manipulate interpreter frame state and will
// never throw.
return (IsAccumulatorLoadWithoutEffects(bytecode) || IsLdarOrStar(bytecode) ||
- bytecode == Bytecode::kMov || bytecode == Bytecode::kNop ||
- IsJump(bytecode));
+ bytecode == Bytecode::kLdrUndefined || bytecode == Bytecode::kMov ||
rmcilroy 2016/06/07 09:46:11 nit - Could we add IsRegisterLoadWithoutEffects, f
oth 2016/06/07 13:46:17 Done. The thought had occurred whether we should
+ bytecode == Bytecode::kNop ||
+ (IsJump(bytecode) && !IsJumpIfToBoolean(bytecode)));
rmcilroy 2016/06/07 09:46:11 nit - could we add IsJumpWithoutExternalEffect() f
oth 2016/06/07 13:46:17 Done.
}
// static

Powered by Google App Engine
This is Rietveld 408576698