OLD | NEW |
1 library dart2js.unsugar_cps; | 1 library dart2js.unsugar_cps; |
2 | 2 |
3 import '../../cps_ir/cps_ir_nodes.dart'; | 3 import '../../cps_ir/cps_ir_nodes.dart'; |
4 | 4 |
5 import '../../cps_ir/optimizers.dart' show ParentVisitor, Pass; | 5 import '../../cps_ir/optimizers.dart' show ParentVisitor, Pass; |
6 import '../../constants/values.dart'; | 6 import '../../constants/values.dart'; |
7 import '../../elements/elements.dart'; | 7 import '../../elements/elements.dart'; |
8 import '../../io/source_information.dart'; | |
9 import '../../js_backend/codegen/glue.dart'; | 8 import '../../js_backend/codegen/glue.dart'; |
10 import '../../universe/selector.dart' show Selector; | 9 import '../../universe/selector.dart' show Selector; |
11 import '../../cps_ir/cps_ir_builder.dart' show ThisParameterLocal; | 10 import '../../cps_ir/cps_ir_builder.dart' show ThisParameterLocal; |
12 | 11 |
13 class ExplicitReceiverParameterEntity implements Local { | 12 class ExplicitReceiverParameterEntity implements Local { |
14 String get name => 'receiver'; | 13 String get name => 'receiver'; |
15 final ExecutableElement executableContext; | 14 final ExecutableElement executableContext; |
16 ExplicitReceiverParameterEntity(this.executableContext); | 15 ExplicitReceiverParameterEntity(this.executableContext); |
17 toString() => 'ExplicitReceiverParameterEntity($executableContext)'; | 16 toString() => 'ExplicitReceiverParameterEntity($executableContext)'; |
18 } | 17 } |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 insertLetPrim(newReceiver, contBinding); | 288 insertLetPrim(newReceiver, contBinding); |
290 } | 289 } |
291 node.arguments.insert(0, node.receiver); | 290 node.arguments.insert(0, node.receiver); |
292 node.receiver = new Reference<Primitive>(newReceiver); | 291 node.receiver = new Reference<Primitive>(newReceiver); |
293 } | 292 } |
294 | 293 |
295 processInterceptor(Interceptor node) { | 294 processInterceptor(Interceptor node) { |
296 _glue.registerSpecializedGetInterceptor(node.interceptedClasses); | 295 _glue.registerSpecializedGetInterceptor(node.interceptedClasses); |
297 } | 296 } |
298 } | 297 } |
OLD | NEW |