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

Unified Diff: src/hydrogen-gvn.cc

Issue 16128004: Reorder switch clauses using newly-introduced execution counters in (Closed) Base URL: gh:v8/v8.git@master
Patch Set: unbreak x64 Created 7 years, 7 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/hydrogen-gvn.cc
diff --git a/src/hydrogen-gvn.cc b/src/hydrogen-gvn.cc
index 5a9af5eb6c446a95a577ba2583de82ab9e4d3ee1..83816d46a7301b36ca795b7607957bf7a9e9841c 100644
--- a/src/hydrogen-gvn.cc
+++ b/src/hydrogen-gvn.cc
@@ -404,7 +404,8 @@ void HGlobalValueNumberer::ComputeBlockSideEffects() {
GVNFlagSet side_effects;
while (instr != NULL) {
side_effects.Add(instr->ChangesFlags());
- if (instr->IsSoftDeoptimize()) {
+ if (instr->IsSoftDeoptimize() ||
+ instr->IsDeoptCounter() || instr->IsDeoptCounterAdd()) {
Sven Panne 2013/06/03 07:30:44 This is a no-go: We're doing something wrong if we
indutny 2013/06/03 07:50:53 Well, its just DeoptCounterAdd that behaves like S
block_side_effects_[id].RemoveAll();
side_effects.RemoveAll();
break;

Powered by Google App Engine
This is Rietveld 408576698