OLD | NEW |
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 'package:kernel/ast.dart' as ir; | 5 import 'package:kernel/ast.dart' as ir; |
6 | 6 |
7 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; | 7 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; |
8 import '../common/tasks.dart' show CompilerTask; | 8 import '../common/tasks.dart' show CompilerTask; |
9 import '../compiler.dart'; | 9 import '../compiler.dart'; |
10 import '../diagnostics/spannable.dart'; | 10 import '../diagnostics/spannable.dart'; |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 HInterceptor interceptor = | 291 HInterceptor interceptor = |
292 new HInterceptor(receiver, backend.nonNullType); | 292 new HInterceptor(receiver, backend.nonNullType); |
293 add(interceptor); | 293 add(interceptor); |
294 inputs.add(interceptor); | 294 inputs.add(interceptor); |
295 } | 295 } |
296 inputs.addAll(arguments); | 296 inputs.addAll(arguments); |
297 | 297 |
298 TypeMask type = astAdapter.selectorTypeOf(invocation); | 298 TypeMask type = astAdapter.selectorTypeOf(invocation); |
299 | 299 |
300 push(new HInvokeDynamicMethod(astAdapter.getSelector(invocation), | 300 push(new HInvokeDynamicMethod(astAdapter.getSelector(invocation), |
301 astAdapter.typeOfInvocation(invocation), inputs, type, isIntercepted)); | 301 astAdapter.getTypeMask(invocation), inputs, type, isIntercepted)); |
302 } | 302 } |
303 | 303 |
304 @override | 304 @override |
305 visitThisExpression(ir.ThisExpression thisExpression) { | 305 visitThisExpression(ir.ThisExpression thisExpression) { |
306 stack.add(localsHandler.readThis()); | 306 stack.add(localsHandler.readThis()); |
307 } | 307 } |
308 | 308 |
309 @override | 309 @override |
310 visitNot(ir.Not not) { | 310 visitNot(ir.Not not) { |
311 not.operand.accept(this); | 311 not.operand.accept(this); |
312 push(new HNot(popBoolified(), backend.boolType)); | 312 push(new HNot(popBoolified(), backend.boolType)); |
313 } | 313 } |
314 } | 314 } |
OLD | NEW |