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) { |