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

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

Issue 10386086: RFC: Start refactoring to provide more than a single backend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index 3e4edb64e01f0465c7e943a452204bde7b6eb501..095090074c68ae047c680355ecf91f312124cb82 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -333,7 +333,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);
@@ -403,7 +403,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 {
@@ -445,7 +445,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
@@ -587,7 +587,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) {
« lib/compiler/implementation/compiler.dart ('K') | « lib/compiler/implementation/ssa/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698