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

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

Issue 10447088: Add a new magic element type for annotating types that have Javascript array behavior. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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/compiler.dart
===================================================================
--- lib/compiler/implementation/compiler.dart (revision 8103)
+++ lib/compiler/implementation/compiler.dart (working copy)
@@ -108,6 +108,13 @@
ClassElement nullClass;
ClassElement listClass;
+ /**
+ * Interface used to determine if an object has the JavaScript
+ * indexing behavior. The interface is only visible to specific
+ * libraries.
+ */
+ ClassElement javaScriptIndexingBehaviorInterface;
ahe 2012/06/12 18:30:04 How about jsIndexingBehaviorInterface?
ngeoffray 2012/06/13 13:02:42 Done.
+
Element get currentElement() => _currentElement;
withCurrentElement(Element element, f()) {
Element old = currentElement;
@@ -329,6 +336,9 @@
libraries['dart:coreimpl'] = coreImplLibrary;
initializeSpecialClasses();
+
+ javaScriptIndexingBehaviorInterface =
+ findHelper(const SourceString('JavaScriptIndexingBehavior'));
}
/** Define the JS helper functions in the given library. */
« no previous file with comments | « no previous file | lib/compiler/implementation/lib/js_helper.dart » ('j') | lib/compiler/implementation/lib/js_helper.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698