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

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

Issue 11308175: Emit constants using ASTs (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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: sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
index 691d73babc3d4a780a6ab4cddbff5339d7e1a17c..51543b2d57874bbd1dd0d9497cc1283045bd1994 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/namer.dart
@@ -408,8 +408,12 @@ class Namer {
return "$ISOLATE.$ISOLATE_PROPERTIES.${getName(element)}";
}
- String isolatePropertiesAccessForConstant(String constantName) {
- return "$ISOLATE.$ISOLATE_PROPERTIES.$constantName";
+ js.Expression isolatePropertiesAccessForConstant(String constantName) {
ngeoffray 2012/11/27 09:26:28 I'd prefer not having this method here. The namer
sra1 2012/11/28 03:59:44 I might agree, but that leaves the question of whe
ngeoffray 2012/11/28 09:25:21 So maybe the isolateAccess, isolateBailoutAccess..
floitsch 2012/11/28 10:04:32 I agree. And it should probably be the emitter any
+ // $ISOLATE.$ISOLATE_PROPERTIES.$constantName
+ return new js.PropertyAccess.field(
+ new js.PropertyAccess.field(
+ new js.VariableUse(ISOLATE), ISOLATE_PROPERTIES),
+ constantName);
}
String isolateAccess(Element element) {

Powered by Google App Engine
This is Rietveld 408576698