OLD | NEW |
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 import 'dart:math' as math; | 5 import 'dart:math' as math; |
6 import 'dart:collection' show Queue; | 6 import 'dart:collection' show Queue; |
7 import '../common.dart'; | 7 import '../common.dart'; |
8 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 8 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
9 import '../common/tasks.dart' show CompilerTask; | 9 import '../common/tasks.dart' show CompilerTask; |
10 import '../constants/constant_system.dart'; | 10 import '../constants/constant_system.dart'; |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 return new js.Fun(codegen.parameters, codegen.body) | 95 return new js.Fun(codegen.parameters, codegen.body) |
96 .withSourceInformation(sourceInformation); | 96 .withSourceInformation(sourceInformation); |
97 }); | 97 }); |
98 } | 98 } |
99 | 99 |
100 js.Expression generateMethod( | 100 js.Expression generateMethod( |
101 CodegenWorkItem work, HGraph graph, ClosedWorld closedWorld) { | 101 CodegenWorkItem work, HGraph graph, ClosedWorld closedWorld) { |
102 return measure(() { | 102 return measure(() { |
103 MethodElement element = work.element; | 103 MethodElement element = work.element; |
104 if (element.asyncMarker != AsyncMarker.SYNC) { | 104 if (element.asyncMarker != AsyncMarker.SYNC) { |
105 work.registry.registerAsyncMarker(element); | 105 work.registry.registerAsyncMarker(element.asyncMarker); |
106 } | 106 } |
107 SsaCodeGenerator codegen = new SsaCodeGenerator( | 107 SsaCodeGenerator codegen = new SsaCodeGenerator( |
108 backend.compiler.options, | 108 backend.compiler.options, |
109 backend.emitter, | 109 backend.emitter, |
110 backend.nativeCodegenEnqueuer, | 110 backend.nativeCodegenEnqueuer, |
111 backend.helpers, | 111 backend.helpers, |
112 backend.checkedModeHelpers, | 112 backend.checkedModeHelpers, |
113 backend.nativeData, | 113 backend.nativeData, |
114 backend.interceptorData, | 114 backend.interceptorData, |
115 backend.oneShotInterceptorData, | 115 backend.oneShotInterceptorData, |
(...skipping 2915 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3031 return _closedWorld.anyStrictSubclassOf(cls, (ClassEntity subclass) { | 3031 return _closedWorld.anyStrictSubclassOf(cls, (ClassEntity subclass) { |
3032 return !_rtiSubstitutions.isTrivialSubstitution(subclass, cls); | 3032 return !_rtiSubstitutions.isTrivialSubstitution(subclass, cls); |
3033 }); | 3033 }); |
3034 } | 3034 } |
3035 | 3035 |
3036 @override | 3036 @override |
3037 void visitRef(HRef node) { | 3037 void visitRef(HRef node) { |
3038 visit(node.value); | 3038 visit(node.value); |
3039 } | 3039 } |
3040 } | 3040 } |
OLD | NEW |