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

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 new emitter. 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 d047c7cede39b237fcc44316cae91b8fdb46b21c..01a76ee7b3be367e19ee928843be7e9d2b4e0249 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) {
floitsch 2015/06/22 17:43:45 indentation.
herhut 2015/06/23 13:26:32 Done.
+ 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