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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart

Issue 22835003: Put constants in 'C', not '$'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart b/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
index ace154a497833dbe25791671a28824c10e9681d5..f1b83d90db798c7f4014705236bb58bcc37e77e5 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_backend/constant_emitter.dart
@@ -122,7 +122,7 @@ class ConstantReferenceEmitter implements ConstantVisitor<jsAst.Expression> {
jsAst.Expression emitCanonicalVersion(Constant constant) {
String name = namer.constantName(constant);
return new jsAst.PropertyAccess.field(
- new jsAst.VariableUse(namer.CURRENT_ISOLATE), name);
+ new jsAst.VariableUse(namer.globalObjectForConstant(constant)), name);
}
jsAst.Expression visitList(ListConstant constant) {
« no previous file with comments | « no previous file | dart/sdk/lib/_internal/compiler/implementation/js_backend/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698