Index: test/mjsunit/lithium/MathExp.js |
diff --git a/test/mjsunit/compiler/type-feedback-after-throw.js b/test/mjsunit/lithium/MathExp.js |
similarity index 92% |
copy from test/mjsunit/compiler/type-feedback-after-throw.js |
copy to test/mjsunit/lithium/MathExp.js |
index 891e315c5c1121fb1674ee4094890266a7708889..854ff5fd7fd2a7a22bcc3557e4e2bb4c01d9b83f 100644 |
--- a/test/mjsunit/compiler/type-feedback-after-throw.js |
+++ b/test/mjsunit/lithium/MathExp.js |
@@ -27,12 +27,13 @@ |
// Flags: --allow-natives-syntax |
-function foo() { |
- throw "Error"; |
- return 1 > 5; |
-}; |
+function foo(x) { |
+ return Math.exp(x); |
+} |
-try { foo() } catch(e) {} |
-try { foo() } catch(e) {} |
+foo(12.3); |
+var r1 = foo(12.3); |
%OptimizeFunctionOnNextCall(foo); |
-try { foo() } catch(e) {} |
+var r2 = foo(12.3); |
+ |
+assertEquals(r1, r2); |