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

Unified Diff: pkg/compiler/lib/src/cps_ir/type_propagation.dart

Issue 1397043002: Introduce BackendImpact to separate enqueueing from data. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Remove Feature.NEW_SYMBOL Created 5 years, 2 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: pkg/compiler/lib/src/cps_ir/type_propagation.dart
diff --git a/pkg/compiler/lib/src/cps_ir/type_propagation.dart b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
index 7cc944c6dd049fe22fb99df111591762d73d0a31..29cba722338ad20a4b79a80539c5f7c6cec74a57 100644
--- a/pkg/compiler/lib/src/cps_ir/type_propagation.dart
+++ b/pkg/compiler/lib/src/cps_ir/type_propagation.dart
@@ -877,7 +877,7 @@ class TransformingVisitor extends LeafVisitor {
<Primitive>[index, cps.letPrim(new GetLength(list))]);
cps.ifTruthy(isTooLarge).invokeContinuation(fail);
cps.insideContinuation(fail).invokeStaticThrower(
- backend.getThrowIndexOutOfBoundsError(),
+ backend.helpers.throwIndexOutOfBoundsError,
<Primitive>[list, index]);
return cps;
}
@@ -895,7 +895,7 @@ class TransformingVisitor extends LeafVisitor {
BuiltinOperator.StrictNeq,
<Primitive>[originalLength, cps.letPrim(new GetLength(list))]);
cps.ifTruthy(lengthChanged).invokeStaticThrower(
- backend.getThrowConcurrentModificationError(),
+ backend.helpers.throwConcurrentModificationError,
<Primitive>[list]);
return cps;
}
@@ -1007,7 +1007,7 @@ class TransformingVisitor extends LeafVisitor {
[length, cps.makeZero()]);
CpsFragment fail = cps.ifTruthy(isEmpty);
fail.invokeStaticThrower(
- backend.getThrowIndexOutOfBoundsError(),
+ backend.helpers.throwIndexOutOfBoundsError,
[list, fail.makeConstant(new IntConstantValue(-1))]);
Primitive removedItem = cps.invokeBuiltin(BuiltinMethod.Pop,
list,

Powered by Google App Engine
This is Rietveld 408576698