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

Unified Diff: test/mjsunit/regress/regress-97116b.js

Issue 18214005: Added %NeverOptimize runtime call that can disable optimizations for a method for tests. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
Index: test/mjsunit/regress/regress-97116b.js
diff --git a/test/mjsunit/regress/regress-97116.js b/test/mjsunit/regress/regress-97116b.js
similarity index 97%
copy from test/mjsunit/regress/regress-97116.js
copy to test/mjsunit/regress/regress-97116b.js
index b858ca5e869fca97d323992cf424ab7c91e29426..e8b73311056a0826c556f4db98f247d76e9a1f12 100644
--- a/test/mjsunit/regress/regress-97116.js
+++ b/test/mjsunit/regress/regress-97116b.js
@@ -31,7 +31,7 @@
// have a pending lazy deoptimization on the stack.
function deopt() {
- try { } catch (e) { } // Avoid inlining.
+ %NeverOptimize();
%DeoptimizeFunction(outer);
for (var i = 0; i < 10; i++) gc(); // Force code flushing.
}

Powered by Google App Engine
This is Rietveld 408576698