Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(402)

Unified Diff: test/mjsunit/lithium/MathExp.js

Issue 24278004: ARM: Tweak Math.exp. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« src/arm/codegen-arm.cc ('K') | « src/arm/lithium-arm.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« src/arm/codegen-arm.cc ('K') | « src/arm/lithium-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698