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

Unified Diff: pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.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/js_emitter/old_emitter/setup_program_builder.dart
diff --git a/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart b/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
index 58ad5bd8f634c6c66846aec8214d90cb4ade494b..115ec4fef9eeb1c0b53c6eb916aa9a59f471ea3e 100644
--- a/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
+++ b/pkg/compiler/lib/src/js_emitter/old_emitter/setup_program_builder.dart
@@ -133,7 +133,8 @@ jsAst.Statement buildSetupProgram(Program program, Compiler compiler,
'trivialNsmHandlers': emitter.buildTrivialNsmHandlers(),
'hasRetainedMetadata': backend.hasRetainedMetadata,
'types': typesAccess,
- 'objectClassName': js.string(namer.runtimeTypeName(compiler.objectClass)),
+ 'objectClassName': js.quoteName(
+ namer.runtimeTypeName(compiler.objectClass)),
'needsStructuredMemberInfo': emitter.needsStructuredMemberInfo,
'usesMangledNames':
compiler.mirrorsLibrary != null || compiler.enabledFunctionApply,
@@ -577,7 +578,7 @@ function $setupProgramName(programData, typesOffset) {
}
// ${ClassBuilder.fieldEncodingDescription}.
var s = fields.split(";");
- fields = s[1] == "" ? [] : s[1].split(",");
+ fields = s[1] ? s[1].split(",") : [];
supr = s[0];
// ${ClassBuilder.functionTypeEncodingDescription}.
split = supr.split(":");

Powered by Google App Engine
This is Rietveld 408576698