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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/codegen.dart

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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: pkg/compiler/lib/src/js_backend/codegen/codegen.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
index 878145dafe31bbaa0338675b72218dcdf8a3a529..44a52470b25c0b98d02415c07023dc87be85e59a 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/codegen.dart
@@ -18,8 +18,9 @@ import '../../js/js.dart' as js;
import '../../tree_ir/tree_ir_nodes.dart' as tree_ir;
import '../../tree_ir/tree_ir_nodes.dart' show BuiltinOperator, BuiltinMethod;
import '../../types/types.dart' show TypeMask;
+import '../../universe/selector.dart' show
+ Selector;
import '../../universe/universe.dart' show
- Selector,
UniverseSelector;
import '../../util/maplet.dart';
@@ -129,7 +130,7 @@ class CodeGenerator extends tree_ir.StatementVisitor
jsVariables.add(jsVariable);
// Remove the initializer from the for loop.
- accumulator[accumulatorIndex] =
+ accumulator[accumulatorIndex] =
new js.For(null, forLoop.condition, forLoop.update, forLoop.body);
}
@@ -572,7 +573,7 @@ class CodeGenerator extends tree_ir.StatementVisitor
loopNode = new js.While(condition, body);
} else { // Compile as a for loop.
js.Expression init;
- if (accumulator.isNotEmpty &&
+ if (accumulator.isNotEmpty &&
accumulator.last is js.ExpressionStatement) {
// Take the preceding expression from the accumulator and use
// it as the initializer expression.
@@ -890,7 +891,7 @@ class CodeGenerator extends tree_ir.StatementVisitor
}
/// The JS name of a built-in method.
- static final Map<BuiltinMethod, String> builtinMethodName =
+ static final Map<BuiltinMethod, String> builtinMethodName =
const <BuiltinMethod, String>{
BuiltinMethod.Push: 'push',
BuiltinMethod.Pop: 'pop',
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_inferrer.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/glue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698