Chromium Code Reviews| Index: lib/compiler/implementation/namer.dart |
| diff --git a/lib/compiler/implementation/namer.dart b/lib/compiler/implementation/namer.dart |
| index e76ecbad75e1d18a8ab8a4e9da04e610d34d4c2c..93fe6d148481d121a9c9fff9699e29f11219c970 100644 |
| --- a/lib/compiler/implementation/namer.dart |
| +++ b/lib/compiler/implementation/namer.dart |
| @@ -33,6 +33,8 @@ class Namer { |
| /** Some closures must contain their name. The name is stored in |
| * [STATIC_CLOSURE_NAME_NAME]. */ |
| final String STATIC_CLOSURE_NAME_NAME = @'$name'; |
| + // TODO(floitsch): make sure the sentinel can't clash with other fields. |
|
kasperl
2012/09/05 08:25:24
Where is this used?
floitsch
2012/09/05 09:31:07
Removed.
done.
|
| + final String LAZY_INITIALIZATION_SENTINEL = @"$lazySentinel"; |
| static const SourceString CLOSURE_INVOCATION_NAME = |
| Compiler.CALL_OPERATOR_NAME; |
| @@ -273,6 +275,12 @@ class Namer { |
| } |
| } |
| + String getLazyInitializerName(Element element) { |
| + // TODO(floitsch): mangle while not conflicting with other statics. |
| + assert(Elements.isStaticOrTopLevelField(element)); |
| + return "get\$${getName(element)}"; |
| + } |
| + |
| String isolatePropertiesAccess(Element element) { |
| return "$ISOLATE.$ISOLATE_PROPERTIES.${getName(element)}"; |
| } |
| @@ -289,6 +297,10 @@ class Namer { |
| return '${isolateAccess(element)}\$bailout'; |
| } |
| + String isolateLazyInitializerAccess(Element element) { |
| + return "$CURRENT_ISOLATE.${getLazyInitializerName(element)}"; |
| + } |
| + |
| String operatorIs(Element element) { |
| return 'is\$${getName(element)}'; |
| } |