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

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

Issue 11348129: Add JSNumber, JSInt and JSDouble for the new interceptor scheme. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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 part of resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 Element operator[](Node node); 8 Element operator[](Node node);
9 Selector getSelector(Send send); 9 Selector getSelector(Send send);
10 DartType getType(Node node); 10 DartType getType(Node node);
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
1884 } 1884 }
1885 if (target == null) { 1885 if (target == null) {
1886 // If we haven't found an element for this send, it might be a 1886 // If we haven't found an element for this send, it might be a
1887 // dynamic send on a primitive value. Register the selector with 1887 // dynamic send on a primitive value. Register the selector with
1888 // the world to add an interceptor, if necessary. 1888 // the world to add an interceptor, if necessary.
1889 world.registerUsedSelector(selector); 1889 world.registerUsedSelector(selector);
1890 } 1890 }
1891 } 1891 }
1892 1892
1893 visitLiteralInt(LiteralInt node) { 1893 visitLiteralInt(LiteralInt node) {
1894 world.registerInstantiatedClass(compiler.intClass);
1894 } 1895 }
1895 1896
1896 visitLiteralDouble(LiteralDouble node) { 1897 visitLiteralDouble(LiteralDouble node) {
1898 world.registerInstantiatedClass(compiler.doubleClass);
1897 } 1899 }
1898 1900
1899 visitLiteralBool(LiteralBool node) { 1901 visitLiteralBool(LiteralBool node) {
1900 } 1902 }
1901 1903
1902 visitLiteralString(LiteralString node) { 1904 visitLiteralString(LiteralString node) {
1903 world.registerInstantiatedClass(compiler.stringClass); 1905 world.registerInstantiatedClass(compiler.stringClass);
1904 } 1906 }
1905 1907
1906 visitLiteralNull(LiteralNull node) { 1908 visitLiteralNull(LiteralNull node) {
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after
3121 return e; 3123 return e;
3122 } 3124 }
3123 3125
3124 /// Assumed to be called by [resolveRedirectingFactory]. 3126 /// Assumed to be called by [resolveRedirectingFactory].
3125 Element visitReturn(Return node) { 3127 Element visitReturn(Return node) {
3126 Node expression = node.expression; 3128 Node expression = node.expression;
3127 return finishConstructorReference(visit(expression), 3129 return finishConstructorReference(visit(expression),
3128 expression, expression); 3130 expression, expression);
3129 } 3131 }
3130 } 3132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698