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

Unified Diff: test/mjsunit/regress/regress-crbug-595615.js

Issue 1818003002: [crankshaft] Check if the function is callable before generating a tail call via Call builtin. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@tco-crank-4
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {}
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698