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

Unified Diff: lib/compiler/implementation/ssa/bailout.dart

Issue 10968060: Add a value range analysis phase to remove bounds checks. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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: lib/compiler/implementation/ssa/bailout.dart
===================================================================
--- lib/compiler/implementation/ssa/bailout.dart (revision 12781)
+++ lib/compiler/implementation/ssa/bailout.dart (working copy)
@@ -26,7 +26,7 @@
}
void add(HInstruction instruction) {
- // If the instruction is a type guard, we add its checked input
+ // If the instruction is a check, we add its checked input
// instead. This allows sharing the same environment between
// different type guards.
//
@@ -34,7 +34,7 @@
// in the live set (because we generate them at use-site), except
// for parameters that are not 'this', which is always passed as
// the receiver.
- if (instruction is HTypeGuard) {
+ if (instruction is HCheck) {
add(instruction.checkedInput);
} else if (!instruction.isCodeMotionInvariant()
|| (instruction is HParameterValue && instruction is !HThis)) {

Powered by Google App Engine
This is Rietveld 408576698