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

Side by Side Diff: pkg/compiler/lib/src/js_backend/codegen/glue.dart

Issue 1278503004: Revert "Move dart2jslib parts into separate libraries." (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 code_generator_dependencies; 5 library code_generator_dependencies;
6 6
7 import '../js_backend.dart'; 7 import '../js_backend.dart';
8 import '../../constants/values.dart';
9 import '../../dart_types.dart' show
10 DartType,
11 TypeVariableType,
12 InterfaceType;
13 import '../../dart2jslib.dart'; 8 import '../../dart2jslib.dart';
14 import '../../enqueue.dart' show
15 CodegenEnqueuer;
16 import '../../elements/elements.dart';
17 import '../../js_emitter/js_emitter.dart'; 9 import '../../js_emitter/js_emitter.dart';
18 import '../../js/js.dart' as js; 10 import '../../js/js.dart' as js;
19 import '../../universe/universe.dart' show Selector; 11 import '../../constants/values.dart';
20 import '../../world.dart' show ClassWorld; 12 import '../../elements/elements.dart';
21 13 import '../../dart_types.dart' show DartType, TypeVariableType, InterfaceType;
22 14
23 /// Encapsulates the dependencies of the function-compiler to the compiler, 15 /// Encapsulates the dependencies of the function-compiler to the compiler,
24 /// backend and emitter. 16 /// backend and emitter.
25 // TODO(sigurdm): Should be refactored when we have a better feeling for the 17 // TODO(sigurdm): Should be refactored when we have a better feeling for the
26 // interface. 18 // interface.
27 class Glue { 19 class Glue {
28 final Compiler _compiler; 20 final Compiler _compiler;
29 21
30 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen; 22 CodegenEnqueuer get _enqueuer => _compiler.enqueuer.codegen;
31 23
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 return _backend.operatorEqHandlesNullArgument(element); 231 return _backend.operatorEqHandlesNullArgument(element);
240 } 232 }
241 233
242 bool hasStrictSubtype(ClassElement element) { 234 bool hasStrictSubtype(ClassElement element) {
243 return _compiler.world.hasAnyStrictSubtype(element); 235 return _compiler.world.hasAnyStrictSubtype(element);
244 } 236 }
245 237
246 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass; 238 ClassElement get jsExtendableArrayClass => _backend.jsExtendableArrayClass;
247 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; 239 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass;
248 } 240 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | pkg/compiler/lib/src/js_backend/codegen/unsugar.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698