Index: test/mjsunit/regress/regress-crbug-595615.js |
diff --git a/test/mjsunit/regress/regress-crbug-593697-2.js b/test/mjsunit/regress/regress-crbug-595615.js |
similarity index 56% |
copy from test/mjsunit/regress/regress-crbug-593697-2.js |
copy to test/mjsunit/regress/regress-crbug-595615.js |
index 1fcbaebd83a2caff31f76b02d895d6c16da28ce9..33095013fa1726d140a411af963c789274ef6594 100644 |
--- a/test/mjsunit/regress/regress-crbug-593697-2.js |
+++ b/test/mjsunit/regress/regress-crbug-595615.js |
@@ -6,13 +6,10 @@ |
"use strict"; |
-%SetForceInlineFlag(Math.cos); |
- |
-var f5 = (function f6(stdlib) { |
- "use asm"; |
- var cos = stdlib.Math.cos; |
- function f5() { |
- return cos(); |
- } |
- return { f5: f5 }; |
-})(this, {}).f5(); |
+function f(o) { |
+ return o.x(); |
+} |
+try { f({ x: 1 }); } catch(e) {} |
+try { f({ x: 1 }); } catch(e) {} |
+%OptimizeFunctionOnNextCall(f); |
+try { f({ x: 1 }); } catch(e) {} |