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

Side by Side Diff: pkg/compiler/lib/src/common/backend_api.dart

Issue 1385183002: Revert "Avoid eager enqueueing from resolution" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/codegen.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 dart2js.backend_api; 5 library dart2js.backend_api;
6 6
7 import 'dart:async' show Future; 7 import 'dart:async' show Future;
8 8
9 import '../compiler.dart' show 9 import '../compiler.dart' show
10 Compiler; 10 Compiler;
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 220
221 /// Call this method to enable support for `noSuchMethod`. 221 /// Call this method to enable support for `noSuchMethod`.
222 void enableNoSuchMethod(Enqueuer enqueuer) {} 222 void enableNoSuchMethod(Enqueuer enqueuer) {}
223 223
224 /// Returns whether or not `noSuchMethod` support has been enabled. 224 /// Returns whether or not `noSuchMethod` support has been enabled.
225 bool get enabledNoSuchMethod => false; 225 bool get enabledNoSuchMethod => false;
226 226
227 /// Call this method to enable support for isolates. 227 /// Call this method to enable support for isolates.
228 void enableIsolateSupport(Enqueuer enqueuer) {} 228 void enableIsolateSupport(Enqueuer enqueuer) {}
229 229
230 void registerRequiredType(DartType type) {} 230 void registerRequiredType(DartType type, Element enclosingElement) {}
231 231
232 void registerConstSymbol(String name, Registry registry) {} 232 void registerConstSymbol(String name, Registry registry) {}
233 void registerNewSymbol(Registry registry) {} 233 void registerNewSymbol(Registry registry) {}
234 234
235 bool isNullImplementation(ClassElement cls) { 235 bool isNullImplementation(ClassElement cls) {
236 return cls == compiler.nullClass; 236 return cls == compiler.nullClass;
237 } 237 }
238 238
239 ClassElement get intImplementation => compiler.intClass; 239 ClassElement get intImplementation => compiler.intClass;
240 ClassElement get doubleImplementation => compiler.doubleClass; 240 ClassElement get doubleImplementation => compiler.doubleClass;
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 abstract class ForeignResolver { 394 abstract class ForeignResolver {
395 /// Returns the constant expression of [node], or `null` if [node] is not 395 /// Returns the constant expression of [node], or `null` if [node] is not
396 /// a constant expression. 396 /// a constant expression.
397 ConstantExpression getConstant(Node node); 397 ConstantExpression getConstant(Node node);
398 398
399 /// Registers [type] as instantiated. 399 /// Registers [type] as instantiated.
400 void registerInstantiatedType(InterfaceType type); 400 void registerInstantiatedType(InterfaceType type);
401 401
402 /// Resolves [typeName] to a type in the context of [node]. 402 /// Resolves [typeName] to a type in the context of [node].
403 DartType resolveTypeFromString(Node node, String typeName); 403 DartType resolveTypeFromString(Node node, String typeName);
404 } 404 }
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/common/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698