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

Side by Side Diff: lib/src/checker/dart_sdk.dart

Issue 1055923002: Don't call dinvoke on Object methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Refactor dynamic target logic Created 5 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This 5 /// Common logic needed to provide a Dart SDK to the analyzer's resolver. This
6 /// includes logic to determine where the sdk is located in the filesystem, and 6 /// includes logic to determine where the sdk is located in the filesystem, and
7 /// definitions to provide mock sdks. 7 /// definitions to provide mock sdks.
8 library dev_compiler.src.checker.dart_sdk; 8 library dev_compiler.src.checker.dart_sdk;
9 9
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 // * types we use via our smoke queries, including HtmlElement and 103 // * types we use via our smoke queries, including HtmlElement and
104 // types from `_typeHandlers` (deserialize.dart) 104 // types from `_typeHandlers` (deserialize.dart)
105 // * types that are used internally by the resolver (see 105 // * types that are used internally by the resolver (see
106 // _initializeFrom in resolver.dart). 106 // _initializeFrom in resolver.dart).
107 'dart:core': ''' 107 'dart:core': '''
108 library dart.core; 108 library dart.core;
109 109
110 void print(Object o) {} 110 void print(Object o) {}
111 111
112 class Object { 112 class Object {
113 int get hashCode {}
114 Type get runtimeType {}
113 String toString(){} 115 String toString(){}
114 } 116 }
115 class Function {} 117 class Function {}
116 class StackTrace {} 118 class StackTrace {}
117 class Symbol {} 119 class Symbol {}
118 class Type {} 120 class Type {}
119 121
120 class String {} 122 class String {}
121 class bool {} 123 class bool {}
122 class num { 124 class num {
(...skipping 29 matching lines...) Expand all
152 class Future<T> { 154 class Future<T> {
153 Future then(callback) {} 155 Future then(callback) {}
154 } 156 }
155 class Stream<T> {} 157 class Stream<T> {}
156 ''', 158 ''',
157 'dart:html': ''' 159 'dart:html': '''
158 library dart.html; 160 library dart.html;
159 class HtmlElement {} 161 class HtmlElement {}
160 ''', 162 ''',
161 }; 163 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698