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

Unified Diff: src/ia32/lithium-codegen-ia32.cc

Issue 14046017: Abcd for performance check. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes and speedups in induction variable detection. 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/ia32/lithium-codegen-ia32.cc
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc
index bc1173b131550b03833f482610ee0a0932232a1a..a0b93f432c11afb0cfb1168d6c8cbb565ce168a0 100644
--- a/src/ia32/lithium-codegen-ia32.cc
+++ b/src/ia32/lithium-codegen-ia32.cc
@@ -4303,10 +4303,18 @@ void LCodeGen::DoBoundsCheck(LBoundsCheck* instr) {
} else {
__ cmp(ToOperand(instr->length()), Immediate(constant_index));
}
- DeoptimizeIf(below_equal, instr->environment());
+ if (instr->hydrogen()->allow_equality()) {
+ DeoptimizeIf(below, instr->environment());
+ } else {
+ DeoptimizeIf(below_equal, instr->environment());
+ }
} else {
__ cmp(ToRegister(instr->index()), ToOperand(instr->length()));
- DeoptimizeIf(above_equal, instr->environment());
+ if (instr->hydrogen()->allow_equality()) {
+ DeoptimizeIf(above, instr->environment());
+ } else {
+ DeoptimizeIf(above_equal, instr->environment());
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698