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

Unified Diff: lib/compiler/implementation/namer.dart

Issue 10363002: Create isolate constructor dynamically. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments and fixed bugs. Created 8 years, 8 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: lib/compiler/implementation/namer.dart
diff --git a/lib/compiler/implementation/namer.dart b/lib/compiler/implementation/namer.dart
index 81045b6647a2f01e80f038617e835ee1cc33bd09..2864e6435ed176216b0d8c79d3d792716e955a40 100644
--- a/lib/compiler/implementation/namer.dart
+++ b/lib/compiler/implementation/namer.dart
@@ -30,6 +30,7 @@ class Namer {
final String CURRENT_ISOLATE = "\$";
final String ISOLATE = "Isolate";
+ final String ISOLATE_PROPERTIES = "\$isolateProperties";
String closureInvocationName(Selector selector) {
@@ -189,12 +190,16 @@ class Namer {
}
}
- String isolateAccess(Element element) {
- return "$CURRENT_ISOLATE.${getName(element)}";
+ String isolatePropertiesAccess(Element element) {
+ return "$ISOLATE.$ISOLATE_PROPERTIES.${getName(element)}";
+ }
+
+ String isolatePropertiesAccessForConstant(String constantName) {
+ return "$ISOLATE.$ISOLATE_PROPERTIES.$constantName";
}
- String isolatePropertyAccess(Element element) {
- return "$ISOLATE.prototype.${getName(element)}";
+ String isolateAccess(Element element) {
+ return "$CURRENT_ISOLATE.${getName(element)}";
}
String isolateBailoutAccess(Element element) {

Powered by Google App Engine
This is Rietveld 408576698