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

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

Issue 1148343004: Remove ConstantExpression.value (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update comments. Created 5 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: 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 9ce842f43367a700f4852b0efe9bd4cfa300a1fe..045e7664a039764ab37e32a628d66fd21b20b9d9 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/unsugar.dart
@@ -83,22 +83,20 @@ class UnsugarVisitor extends RecursiveVisitor {
Constant get trueConstant {
return new Constant(
- new BoolConstantExpression(
- true,
- new TrueConstantValue()));
+ new BoolConstantExpression(true),
+ new TrueConstantValue());
}
Constant get falseConstant {
return new Constant(
- new BoolConstantExpression(
- false,
- new FalseConstantValue()));
+ new BoolConstantExpression(false),
+ new FalseConstantValue());
}
Constant get nullConstant {
return new Constant(
- new NullConstantExpression(
- new NullConstantValue()));
+ new NullConstantExpression(),
+ 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/js_backend/constant_handler_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698