| OLD | NEW |
| 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 // VMOptions=-DUSE_CPS_IR=true | 4 // VMOptions=-DUSE_CPS_IR=true |
| 5 | 5 |
| 6 // Tests of interceptors. | 6 // Tests of interceptors. |
| 7 | 7 |
| 8 library supercall_test; | 8 library supercall_test; |
| 9 | 9 |
| 10 import 'js_backend_cps_ir.dart'; | 10 import 'js_backend_cps_ir.dart'; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 var field; | 57 var field; |
| 58 } | 58 } |
| 59 class Sub extends Base { | 59 class Sub extends Base { |
| 60 m(x) => x + super.field; | 60 m(x) => x + super.field; |
| 61 } | 61 } |
| 62 main() { | 62 main() { |
| 63 print(new Sub().m(10)); | 63 print(new Sub().m(10)); |
| 64 }""", | 64 }""", |
| 65 r""" | 65 r""" |
| 66 function(x) { | 66 function(x) { |
| 67 var v0; | 67 var v0 = this.field; |
| 68 v0 = this.field; | |
| 69 return J.getInterceptor$ns(x).$add(x, v0); | 68 return J.getInterceptor$ns(x).$add(x, v0); |
| 70 }"""), | 69 }"""), |
| 71 | 70 |
| 72 | 71 |
| 73 ]; | 72 ]; |
| 74 | 73 |
| 75 void main() { | 74 void main() { |
| 76 runTests(tests); | 75 runTests(tests); |
| 77 } | 76 } |
| OLD | NEW |