| Index: pkg/compiler/lib/src/js_backend/codegen/glue.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/codegen/glue.dart b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
|
| index 5b3f57243b6465ee6a16ebeeed4199ad884c2bc2..eafef0ef96adb4c16754950dd01d15a8cf8e10d9 100644
|
| --- a/pkg/compiler/lib/src/js_backend/codegen/glue.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/codegen/glue.dart
|
| @@ -4,30 +4,21 @@
|
|
|
| library code_generator_dependencies;
|
|
|
| -import '../backend_helpers.dart' show
|
| - BackendHelpers;
|
| +import '../backend_helpers.dart' show BackendHelpers;
|
| import '../js_backend.dart';
|
|
|
| import '../../common.dart';
|
| -import '../../common/codegen.dart' show
|
| - CodegenRegistry;
|
| -import '../../compiler.dart' show
|
| - Compiler;
|
| +import '../../common/codegen.dart' show CodegenRegistry;
|
| +import '../../compiler.dart' show Compiler;
|
| import '../../constants/values.dart';
|
| -import '../../dart_types.dart' show
|
| - DartType,
|
| - TypeVariableType,
|
| - InterfaceType;
|
| -import '../../enqueue.dart' show
|
| - CodegenEnqueuer;
|
| +import '../../dart_types.dart' show DartType, TypeVariableType, InterfaceType;
|
| +import '../../enqueue.dart' show CodegenEnqueuer;
|
| import '../../elements/elements.dart';
|
| import '../../js_emitter/js_emitter.dart';
|
| import '../../js/js.dart' as js;
|
| import '../../native/native.dart' show NativeBehavior;
|
| -import '../../universe/selector.dart' show
|
| - Selector;
|
| -import '../../world.dart' show
|
| - ClassWorld;
|
| +import '../../universe/selector.dart' show Selector;
|
| +import '../../world.dart' show ClassWorld;
|
| import '../../types/types.dart';
|
|
|
| /// Encapsulates the dependencies of the function-compiler to the compiler,
|
| @@ -148,7 +139,7 @@ class Glue {
|
| }
|
|
|
| js.Expression prototypeAccess(ClassElement e,
|
| - {bool hasBeenInstantiated: false}) {
|
| + {bool hasBeenInstantiated: false}) {
|
| return _emitter.prototypeAccess(e,
|
| hasBeenInstantiated: hasBeenInstantiated);
|
| }
|
| @@ -232,12 +223,10 @@ class Glue {
|
| }
|
|
|
| js.Expression generateTypeRepresentation(DartType dartType,
|
| - List<js.Expression> arguments,
|
| - CodegenRegistry registry) {
|
| + List<js.Expression> arguments, CodegenRegistry registry) {
|
| int variableIndex = 0;
|
| - js.Expression representation = _backend.rtiEncoder.getTypeRepresentation(
|
| - dartType,
|
| - (_) => arguments[variableIndex++]);
|
| + js.Expression representation = _backend.rtiEncoder
|
| + .getTypeRepresentation(dartType, (_) => arguments[variableIndex++]);
|
| assert(variableIndex == arguments.length);
|
| // Representation contains JavaScript Arrays.
|
| registry.registerInstantiatedClass(_helpers.jsArrayClass);
|
|
|