| 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 | 4 |
| 5 import 'dart:async'; | 5 import 'dart:async'; |
| 6 import '../mock_compiler.dart'; | 6 import '../mock_compiler.dart'; |
| 7 import 'sexpr_unstringifier.dart'; | 7 import 'sexpr_unstringifier.dart'; |
| 8 import 'package:async_helper/async_helper.dart'; | 8 import 'package:async_helper/async_helper.dart'; |
| 9 import "package:expect/expect.dart"; | 9 import "package:expect/expect.dart"; |
| 10 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart'; | 10 import 'package:compiler/src/cps_ir/cps_ir_nodes_sexpr.dart'; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 ((k4 () | 93 ((k4 () |
| 94 (InvokeContinuation return (v0))) | 94 (InvokeContinuation return (v0))) |
| 95 (k5 () | 95 (k5 () |
| 96 (LetPrim (v4 (Constant (Bool true))) | 96 (LetPrim (v4 (Constant (Bool true))) |
| 97 (LetCont | 97 (LetCont |
| 98 ((k6 (v5) | 98 ((k6 (v5) |
| 99 (LetCont | 99 (LetCont |
| 100 ((k7 () | 100 ((k7 () |
| 101 (InvokeContinuation return (v0
))) | 101 (InvokeContinuation return (v0
))) |
| 102 (k8 () | 102 (k8 () |
| 103 (InvokeContinuation* k0 ()))) | 103 (InvokeContinuation rec k0 ())
)) |
| 104 (Branch (IsTrue v5) k7 k8)))) | 104 (Branch (IsTrue v5) k7 k8)))) |
| 105 (LetCont | 105 (LetCont |
| 106 ((k9 () | 106 ((k9 () |
| 107 (LetPrim (v6 (Constant (Int 1))) | 107 (LetPrim (v6 (Constant (Int 1))) |
| 108 (LetCont | 108 (LetCont |
| 109 ((k10 (v7) | 109 ((k10 (v7) |
| 110 (LetCont | 110 (LetCont |
| 111 ((k11 () | 111 ((k11 () |
| 112 (LetPrim (v8 (Const
ant (Bool true))) | 112 (LetPrim (v8 (Const
ant (Bool true))) |
| 113 (InvokeContinuati
on k6 (v8)))) | 113 (InvokeContinuati
on k6 (v8)))) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 ((k4 () | 157 ((k4 () |
| 158 (InvokeContinuation return (v0))) | 158 (InvokeContinuation return (v0))) |
| 159 (k5 () | 159 (k5 () |
| 160 (LetPrim (v4 (Constant (Bool true))) | 160 (LetPrim (v4 (Constant (Bool true))) |
| 161 (LetCont | 161 (LetCont |
| 162 ((k6 (v5) | 162 ((k6 (v5) |
| 163 (LetCont | 163 (LetCont |
| 164 ((k7 () | 164 ((k7 () |
| 165 (InvokeContinuation return (v0
))) | 165 (InvokeContinuation return (v0
))) |
| 166 (k8 () | 166 (k8 () |
| 167 (InvokeContinuation* k0 ()))) | 167 (InvokeContinuation rec k0 ())
)) |
| 168 (InvokeContinuation k7 ())))) | 168 (InvokeContinuation k7 ())))) |
| 169 (LetCont | 169 (LetCont |
| 170 ((k9 () | 170 ((k9 () |
| 171 (LetPrim (v6 (Constant (Int 1))) | 171 (LetPrim (v6 (Constant (Int 1))) |
| 172 (LetCont | 172 (LetCont |
| 173 ((k10 (v7) | 173 ((k10 (v7) |
| 174 (LetCont | 174 (LetCont |
| 175 ((k11 () | 175 ((k11 () |
| 176 (LetPrim (v8 (Const
ant (Bool true))) | 176 (LetPrim (v8 (Const
ant (Bool true))) |
| 177 (InvokeContinuati
on k6 (v8)))) | 177 (InvokeContinuati
on k6 (v8)))) |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 382 (LetCont | 382 (LetCont |
| 383 ((k4 (v4) | 383 ((k4 (v4) |
| 384 (LetCont | 384 (LetCont |
| 385 ((k5 () | 385 ((k5 () |
| 386 (LetPrim (v5 (Constant (Int 42))) | 386 (LetPrim (v5 (Constant (Int 42))) |
| 387 (InvokeContinuation return (v5)))) | 387 (InvokeContinuation return (v5)))) |
| 388 (k6 () | 388 (k6 () |
| 389 (LetPrim (v6 (Constant (Int 1))) | 389 (LetPrim (v6 (Constant (Int 1))) |
| 390 (LetCont | 390 (LetCont |
| 391 ((k7 (v7) | 391 ((k7 (v7) |
| 392 (InvokeContinuation* k0 (v7)))
) | 392 (InvokeContinuation rec k0 (v7
)))) |
| 393 (InvokeMethod v1 + (v6) k7))))) | 393 (InvokeMethod v1 + (v6) k7))))) |
| 394 (Branch (IsTrue v4) k5 k6)))) | 394 (Branch (IsTrue v4) k5 k6)))) |
| 395 (LetCont | 395 (LetCont |
| 396 ((k8 () | 396 ((k8 () |
| 397 (LetPrim (v8 (Constant (Bool false))) | 397 (LetPrim (v8 (Constant (Bool false))) |
| 398 (InvokeContinuation k4 (v8)))) | 398 (InvokeContinuation k4 (v8)))) |
| 399 (k9 () | 399 (k9 () |
| 400 (LetPrim (v9 (Constant (Bool true))) | 400 (LetPrim (v9 (Constant (Bool true))) |
| 401 (InvokeContinuation k4 (v9))))) | 401 (InvokeContinuation k4 (v9))))) |
| 402 (Branch (IsTrue v3) k8 k9))))) | 402 (Branch (IsTrue v3) k8 k9))))) |
| (...skipping 17 matching lines...) Expand all Loading... |
| 420 (LetCont | 420 (LetCont |
| 421 ((k4 (v4) | 421 ((k4 (v4) |
| 422 (LetCont | 422 (LetCont |
| 423 ((k5 () | 423 ((k5 () |
| 424 (LetPrim (v5 (Constant (Int 42))) | 424 (LetPrim (v5 (Constant (Int 42))) |
| 425 (InvokeContinuation return (v5)))) | 425 (InvokeContinuation return (v5)))) |
| 426 (k6 () | 426 (k6 () |
| 427 (LetPrim (v6 (Constant (Int 1))) | 427 (LetPrim (v6 (Constant (Int 1))) |
| 428 (LetCont | 428 (LetCont |
| 429 ((k7 (v7) | 429 ((k7 (v7) |
| 430 (InvokeContinuation* k0 (v7)))) | 430 (InvokeContinuation rec k0 (v7)
))) |
| 431 (InvokeMethod v1 + (v6) k7))))) | 431 (InvokeMethod v1 + (v6) k7))))) |
| 432 (Branch (IsTrue v4) k5 k6)))) | 432 (Branch (IsTrue v4) k5 k6)))) |
| 433 (LetCont | 433 (LetCont |
| 434 ((k8 () | 434 ((k8 () |
| 435 (LetPrim (v8 (Constant (Bool false))) | 435 (LetPrim (v8 (Constant (Bool false))) |
| 436 (InvokeContinuation k4 (v8)))) | 436 (InvokeContinuation k4 (v8)))) |
| 437 (k9 () | 437 (k9 () |
| 438 (LetPrim (v9 (Constant (Bool true))) | 438 (LetPrim (v9 (Constant (Bool true))) |
| 439 (InvokeContinuation k4 (v9))))) | 439 (InvokeContinuation k4 (v9))))) |
| 440 (Branch (IsTrue v3) k8 k9))))) | 440 (Branch (IsTrue v3) k8 k9))))) |
| (...skipping 22 matching lines...) Expand all Loading... |
| 463 (InvokeContinuation return (v2)))) | 463 (InvokeContinuation return (v2)))) |
| 464 (k2 () | 464 (k2 () |
| 465 (LetPrim (v3 (Constant (Int 42))) | 465 (LetPrim (v3 (Constant (Int 42))) |
| 466 (LetCont | 466 (LetCont |
| 467 ((k3 (v4) | 467 ((k3 (v4) |
| 468 (LetCont | 468 (LetCont |
| 469 ((k4 (v5) | 469 ((k4 (v5) |
| 470 (LetPrim (v6 (Constant (Int 1))) | 470 (LetPrim (v6 (Constant (Int 1))) |
| 471 (LetCont | 471 (LetCont |
| 472 ((k5 (v7) | 472 ((k5 (v7) |
| 473 (InvokeContinuation* k0 (v7)))) | 473 (InvokeContinuation rec k0 (v7)))) |
| 474 (InvokeMethod v1 + (v6) k5))))) | 474 (InvokeMethod v1 + (v6) k5))))) |
| 475 (InvokeStatic print (v4) k4)))) | 475 (InvokeStatic print (v4) k4)))) |
| 476 (InvokeMethod v3 + (v1) k3))))) | 476 (InvokeMethod v3 + (v1) k3))))) |
| 477 (LetPrim (v8 (Constant (Int 2))) | 477 (LetPrim (v8 (Constant (Int 2))) |
| 478 (LetCont | 478 (LetCont |
| 479 ((k6 (v9) | 479 ((k6 (v9) |
| 480 (Branch (IsTrue v9) k2 k1))) | 480 (Branch (IsTrue v9) k2 k1))) |
| 481 (InvokeMethod v1 < (v8) k6)))))) | 481 (InvokeMethod v1 < (v8) k6)))))) |
| 482 (InvokeContinuation k0 (v0))))) | 482 (InvokeContinuation k0 (v0))))) |
| 483 """; | 483 """; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 asyncTest(() => testConstantPropagator(CP2_IN, CP2_OUT)); | 519 asyncTest(() => testConstantPropagator(CP2_IN, CP2_OUT)); |
| 520 asyncTest(() => testConstantPropagator(CP3_IN, CP3_OUT)); | 520 asyncTest(() => testConstantPropagator(CP3_IN, CP3_OUT)); |
| 521 asyncTest(() => testConstantPropagator(CP4_IN, CP4_OUT)); | 521 asyncTest(() => testConstantPropagator(CP4_IN, CP4_OUT)); |
| 522 asyncTest(() => testConstantPropagator(CP5_IN, CP5_OUT)); | 522 asyncTest(() => testConstantPropagator(CP5_IN, CP5_OUT)); |
| 523 asyncTest(() => testConstantPropagator(CP6_IN, CP6_OUT)); | 523 asyncTest(() => testConstantPropagator(CP6_IN, CP6_OUT)); |
| 524 asyncTest(() => testConstantPropagator(CP7_IN, CP7_OUT)); | 524 asyncTest(() => testConstantPropagator(CP7_IN, CP7_OUT)); |
| 525 asyncTest(() => testConstantPropagator(CP8_IN, CP8_OUT)); | 525 asyncTest(() => testConstantPropagator(CP8_IN, CP8_OUT)); |
| 526 asyncTest(() => testConstantPropagator(CP9_IN, CP9_OUT)); | 526 asyncTest(() => testConstantPropagator(CP9_IN, CP9_OUT)); |
| 527 asyncTest(() => testConstantPropagator(CP10_IN, CP10_OUT)); | 527 asyncTest(() => testConstantPropagator(CP10_IN, CP10_OUT)); |
| 528 } | 528 } |
| OLD | NEW |