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

Unified Diff: test/mjsunit/regress/regress-deopt-gcb.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-deopt-gcb.js
diff --git a/test/mjsunit/regress/regress-deopt-gc.js b/test/mjsunit/regress/regress-deopt-gcb.js
similarity index 98%
copy from test/mjsunit/regress/regress-deopt-gc.js
copy to test/mjsunit/regress/regress-deopt-gcb.js
index a74e2c5ea44fa3eed0e05e3437ff440dfa71a74b..95bb450901c504062c49421c84d98b2d52a97d1e 100644
--- a/test/mjsunit/regress/regress-deopt-gc.js
+++ b/test/mjsunit/regress/regress-deopt-gcb.js
@@ -40,7 +40,7 @@ function opt_me() {
function deopt() {
// Make sure we don't inline this function
- try { var a = 42; } catch(o) {};
+ %NeverOptimize();
%DeoptimizeFunction(opt_me);
gc();
}

Powered by Google App Engine
This is Rietveld 408576698