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

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

Issue 1348063002: Make the universe parts into small libraries. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 '../../common/registry.dart' show 8 import '../../common/registry.dart' show
9 Registry; 9 Registry;
10 import '../../compiler.dart' show 10 import '../../compiler.dart' show
11 Compiler; 11 Compiler;
12 import '../../constants/values.dart'; 12 import '../../constants/values.dart';
13 import '../../dart_types.dart' show 13 import '../../dart_types.dart' show
14 DartType, 14 DartType,
15 TypeVariableType, 15 TypeVariableType,
16 InterfaceType; 16 InterfaceType;
17 import '../../enqueue.dart' show 17 import '../../enqueue.dart' show
18 CodegenEnqueuer; 18 CodegenEnqueuer;
19 import '../../elements/elements.dart'; 19 import '../../elements/elements.dart';
20 import '../../js_emitter/js_emitter.dart'; 20 import '../../js_emitter/js_emitter.dart';
21 import '../../js/js.dart' as js; 21 import '../../js/js.dart' as js;
22 import '../../universe/universe.dart' show 22 import '../../universe/selector.dart' show
23 Selector; 23 Selector;
24 import '../../world.dart' show 24 import '../../world.dart' show
25 ClassWorld; 25 ClassWorld;
26 26
27 27
28 /// Encapsulates the dependencies of the function-compiler to the compiler, 28 /// Encapsulates the dependencies of the function-compiler to the compiler,
29 /// backend and emitter. 29 /// backend and emitter.
30 // TODO(sigurdm): Should be refactored when we have a better feeling for the 30 // TODO(sigurdm): Should be refactored when we have a better feeling for the
31 // interface. 31 // interface.
32 class Glue { 32 class Glue {
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass; 262 ClassElement get jsMutableArrayClass => _backend.jsMutableArrayClass;
263 263
264 bool isStringClass(ClassElement classElement) => 264 bool isStringClass(ClassElement classElement) =>
265 classElement == _backend.jsStringClass || 265 classElement == _backend.jsStringClass ||
266 classElement == _compiler.stringClass; 266 classElement == _compiler.stringClass;
267 267
268 bool isBoolClass(ClassElement classElement) => 268 bool isBoolClass(ClassElement classElement) =>
269 classElement == _backend.jsBoolClass || 269 classElement == _backend.jsBoolClass ||
270 classElement == _compiler.boolClass; 270 classElement == _compiler.boolClass;
271 } 271 }
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