| Index: tests/language/inline_effect_context_test.dart
|
| ===================================================================
|
| --- tests/language/inline_effect_context_test.dart (revision 24922)
|
| +++ tests/language/inline_effect_context_test.dart (working copy)
|
| @@ -4,6 +4,7 @@
|
| // Test inlining of simple function with control flow in an effect context.
|
| // Optimize function foo with instance of A and inlined function bar. Call later
|
| // with instance of B and cause deoptimization.
|
| +// VMOptions=--optimization-counter-threshold=10 --no-use-osr
|
|
|
| import "package:expect/expect.dart";
|
|
|
| @@ -31,8 +32,8 @@
|
| main() {
|
| var o = new A();
|
| int sum = 0;
|
| - for (int i = 0; i < 5000; i++) sum += foo(o);
|
| + for (int i = 0; i < 20; i++) sum += foo(o);
|
| o = new B();
|
| sum += foo(o); // <-- Cause deoptimization of bar within foo.
|
| - Expect.equals(5001, sum);
|
| + Expect.equals(21, sum);
|
| }
|
|
|