Index: test/mjsunit/regress/regress-612412.js |
diff --git a/test/mjsunit/regress/regress-612412.js b/test/mjsunit/regress/regress-612412.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..d98c9e68e1ec97a34ff2a51a6114d9535231b6a6 |
--- /dev/null |
+++ b/test/mjsunit/regress/regress-612412.js |
@@ -0,0 +1,16 @@ |
+// Copyright 2015 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+function counter() { return {x: 0} || this } |
+ |
+ |
+var f = (function() { |
+ "use asm"; |
+ return function g(c1, c2) { |
+ for (var x = 0 ; x < 100000; ++x) { c1(); } |
Michael Starzinger
2016/05/23 13:15:33
I assume this loop is used to trigger OSR, correct
|
+ } |
+})(); |
+ |
+g = (function() { f((Array), counter()); }); |
+g(); |