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

Unified Diff: src/hydrogen.cc

Issue 9188005: Blocks that contain soft deopts have no side effects. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 11 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index f2d7fe18a6afbeead8e3c97e8aac964e0ac4c14a..1f32447d4da18109209842815c805d134b0f278d 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -1414,6 +1414,11 @@ void HGlobalValueNumberer::ComputeBlockSideEffects() {
int side_effects = 0;
while (instr != NULL) {
side_effects |= instr->ChangesFlags();
+ if (instr->IsSoftDeoptimize()) {
+ block_side_effects_[id] = 0;
+ side_effects = 0;
+ break;
+ }
instr = instr->next();
}
block_side_effects_[id] |= side_effects;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698