| Index: lib/compiler/implementation/ssa/optimize.dart
|
| diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
|
| index 75e9c1c41f67a736a8d73673b65e0003779f3d93..044db65de1787b11d45418ab7d65c5045d0409cd 100644
|
| --- a/lib/compiler/implementation/ssa/optimize.dart
|
| +++ b/lib/compiler/implementation/ssa/optimize.dart
|
| @@ -330,7 +330,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
|
|
|
| HInstruction visitRelational(HRelational node) {
|
| if (allUsersAreBoolifies(node)) {
|
| - Interceptors interceptors = compiler.builder.interceptors;
|
| + Interceptors interceptors = compiler.backend.builder.interceptors;
|
| HStatic oldTarget = node.target;
|
| Element boolifiedInterceptor =
|
| interceptors.getBoolifiedVersionOf(oldTarget.element);
|
| @@ -400,7 +400,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
|
| HInstruction newInstruction = handleIdentityCheck(node);
|
| if (newInstruction === null) {
|
| HStatic target = new HStatic(
|
| - compiler.builder.interceptors.getTripleEqualsInterceptor());
|
| + compiler.backend.builder.interceptors.getTripleEqualsInterceptor());
|
| node.block.addBefore(node, target);
|
| return new HIdentity(target, node.left, node.right);
|
| } else {
|
| @@ -442,7 +442,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
|
| return graph.addConstantBool(false);
|
| } else {
|
| // TODO(floitsch): cache interceptors.
|
| - Interceptors interceptors = compiler.builder.interceptors;
|
| + Interceptors interceptors = compiler.backend.builder.interceptors;
|
| Element equalsElement = interceptors.getEqualsInterceptor();
|
| // If we have a different element than [equalsElement], we
|
| // don't need to optimize this instruction to use another
|
| @@ -580,7 +580,7 @@ class SsaCheckInserter extends HBaseVisitor implements OptimizationPhase {
|
| SsaCheckInserter(Compiler compiler) {
|
| SourceString lengthString = const SourceString('length');
|
| lengthInterceptor =
|
| - compiler.builder.interceptors.getStaticGetInterceptor(lengthString);
|
| + compiler.backend.builder.interceptors.getStaticGetInterceptor(lengthString);
|
| }
|
|
|
| void visitGraph(HGraph graph) {
|
|
|