mirror of
https://github.com/dart-lang/sdk
synced 2024-09-18 21:31:20 +00:00
b3405d5ebc
BUG= R=asiva@google.com Review URL: https://codereview.chromium.org/1759973002 .
17 lines
559 B
Dart
17 lines
559 B
Dart
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
|
// for details. All rights reserved. Use of this source code is governed by a
|
|
// BSD-style license that can be found in the LICENSE file.
|
|
// Test that SSA values are correctly numbered after inlining that adds
|
|
// constants to original environment.
|
|
// VMOptions=--optimization-counter-threshold=10 --no-background-compilation
|
|
|
|
h(x, y) => x == y;
|
|
|
|
g(y, [x0 = 0, x1 = 1, x2 = 2, x3 = 3]) => y + x0 + x1 + x2 + x3;
|
|
|
|
f(y) => h(y, g(y));
|
|
|
|
main() {
|
|
for (var i = 0; i < 20; i++) f(i);
|
|
}
|