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

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

Issue 1195573003: dart2js cps: Refactor and optimize string concatenations. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Revert doc comment change Created 5 years, 6 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/unsugar.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
index 045e7664a039764ab37e32a628d66fd21b20b9d9..494828e8cd9909f5cf028e6b0dcf70559fb74ff0 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
@@ -82,21 +82,15 @@ class UnsugarVisitor extends RecursiveVisitor {
}
Constant get trueConstant {
- return new Constant(
- new BoolConstantExpression(true),
- new TrueConstantValue());
+ return new Constant(new TrueConstantValue());
}
Constant get falseConstant {
- return new Constant(
- new BoolConstantExpression(false),
- new FalseConstantValue());
+ return new Constant(new FalseConstantValue());
}
Constant get nullConstant {
- return new Constant(
- new NullConstantExpression(),
- new NullConstantValue());
+ return new Constant(new NullConstantValue());
}
void insertLetPrim(Primitive primitive, Expression node) {
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/glue.dart ('k') | pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698