| Index: pkg/compiler/lib/src/cps_ir/bounds_checker.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/bounds_checker.dart b/pkg/compiler/lib/src/cps_ir/bounds_checker.dart
|
| index 28dbd624e99acdb4c5156e06549e893c1f5cdf5a..5891c9f3e8fdbe93a01aa2575b0fc2a49b1d9a4b 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/bounds_checker.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/bounds_checker.dart
|
| @@ -468,7 +468,7 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
|
| }
|
| }
|
|
|
| - // ---------------- CALL EXPRESSIONS --------------------
|
| + // ---------------- PRIMITIVES --------------------
|
|
|
| @override
|
| void visitInvokeMethod(InvokeMethod node) {
|
| @@ -478,7 +478,6 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
|
| .changesIndex()) {
|
| currentEffectNumber = makeNewEffect();
|
| }
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| @@ -486,7 +485,6 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
|
| if (world.getSideEffectsOfElement(node.target).changesIndex()) {
|
| currentEffectNumber = makeNewEffect();
|
| }
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| @@ -499,7 +497,6 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
|
| if (world.getSideEffectsOfElement(target).changesIndex()) {
|
| currentEffectNumber = makeNewEffect();
|
| }
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| @@ -507,19 +504,16 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
|
| if (world.getSideEffectsOfElement(node.target).changesIndex()) {
|
| currentEffectNumber = makeNewEffect();
|
| }
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| void visitTypeCast(TypeCast node) {
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| void visitGetLazyStatic(GetLazyStatic node) {
|
| // TODO(asgerf): How do we get the side effects of a lazy field initializer?
|
| currentEffectNumber = makeNewEffect();
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| @@ -527,23 +521,18 @@ class BoundsChecker extends TrampolineRecursiveVisitor implements Pass {
|
| if (node.nativeBehavior.sideEffects.changesIndex()) {
|
| currentEffectNumber = makeNewEffect();
|
| }
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| void visitAwait(Await node) {
|
| currentEffectNumber = makeNewEffect();
|
| - push(node.continuation.definition);
|
| }
|
|
|
| @override
|
| void visitYield(Yield node) {
|
| currentEffectNumber = makeNewEffect();
|
| - push(node.continuation.definition);
|
| }
|
|
|
| - // ---------------- PRIMITIVES --------------------
|
| -
|
| @override
|
| void visitApplyBuiltinMethod(ApplyBuiltinMethod node) {
|
| Primitive receiver = node.receiver.definition;
|
|
|