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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/lib/interceptors.dart

Issue 11360228: Simplify runtime type support. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove test again. Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library('dart:_interceptors'); 5 #library('dart:_interceptors');
6 6
7 #import('dart:collection'); 7 #import('dart:collection');
8 8
9 /** 9 /**
10 * The interceptor class for [String]. The compiler recognizes this 10 * The interceptor class for [String]. The compiler recognizes this
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after
695 return getOrCreateCachedRuntimeType('int'); 695 return getOrCreateCachedRuntimeType('int');
696 } else if (receiver is String) { 696 } else if (receiver is String) {
697 return getOrCreateCachedRuntimeType('String'); 697 return getOrCreateCachedRuntimeType('String');
698 } else if (receiver is double) { 698 } else if (receiver is double) {
699 return getOrCreateCachedRuntimeType('double'); 699 return getOrCreateCachedRuntimeType('double');
700 } else if (receiver is bool) { 700 } else if (receiver is bool) {
701 return getOrCreateCachedRuntimeType('bool'); 701 return getOrCreateCachedRuntimeType('bool');
702 } else if (receiver == null) { 702 } else if (receiver == null) {
703 return getOrCreateCachedRuntimeType('Null'); 703 return getOrCreateCachedRuntimeType('Null');
704 } else if (isJsArray(receiver)) { 704 } else if (isJsArray(receiver)) {
705 return getOrCreateCachedRuntimeType('List'); 705 return getOrCreateCachedRuntimeType(getRuntimeTypeString(receiver));
706 } else { 706 } else {
707 return UNINTERCEPTED(receiver.runtimeType); 707 return UNINTERCEPTED(receiver.runtimeType);
708 } 708 }
709 } 709 }
710 710
711 // TODO(lrn): These getters should be generated automatically for all 711 // TODO(lrn): These getters should be generated automatically for all
712 // intercepted methods. 712 // intercepted methods.
713 get$toString(receiver) => () => toString(receiver); 713 get$toString(receiver) => () => toString(receiver);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698