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

Unified Diff: pkg/compiler/lib/src/ssa/nodes.dart

Issue 1198293002: dart2js: Use an abstract Name class for names in the generated JavaScript ast. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: fix tests 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/ssa/nodes.dart
diff --git a/pkg/compiler/lib/src/ssa/nodes.dart b/pkg/compiler/lib/src/ssa/nodes.dart
index 575044550131e4c458ce57d17ba7733cdbf33712..3268ad49efa59c3cd21f346067cc266e59e733fa 100644
--- a/pkg/compiler/lib/src/ssa/nodes.dart
+++ b/pkg/compiler/lib/src/ssa/nodes.dart
@@ -211,6 +211,14 @@ class HGraph {
compiler);
}
+ HConstant addConstantStringFromName(js.Name name,
+ Compiler compiler) {
+ return addConstant(
+ new SyntheticConstantValue(SyntheticConstantKind.NAME,
+ js.quoteName(name)),
+ compiler);
+ }
+
HConstant addConstantBool(bool value, Compiler compiler) {
return addConstant(
compiler.backend.constantSystem.createBool(value), compiler);

Powered by Google App Engine
This is Rietveld 408576698