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

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

Issue 12610004: Start using the new union/intersection code for HType.INDEXABLE_PRIMITIVE. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Simplify even further. Created 7 years, 9 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/interceptors.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
diff --git a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
index 2c966c73f880dc911b552ce8668d70d4c76496d0..61d2ed306730a8fc2ec61480191850a400d1ef31 100644
--- a/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
+++ b/sdk/lib/_internal/compiler/implementation/js_backend/backend.dart
@@ -642,6 +642,7 @@ class JavaScriptBackend extends Backend {
ClassElement jsFunctionClass;
ClassElement jsNullClass;
ClassElement jsBoolClass;
+ ClassElement jsIndexableClass;
Element jsArrayLength;
Element jsStringLength;
Element jsArrayRemoveLast;
@@ -819,6 +820,9 @@ class JavaScriptBackend extends Backend {
compiler.findInterceptor(const SourceString('JSFunction')),
jsBoolClass = compiler.findInterceptor(const SourceString('JSBool'))];
+ jsIndexableClass =
+ compiler.findInterceptor(const SourceString('JSIndexable'));
+
jsArrayClass.ensureResolved(compiler);
jsArrayLength = compiler.lookupElementIn(
jsArrayClass, const SourceString('length'));
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/lib/interceptors.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698