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

Unified Diff: test/mjsunit/compiler/regress-max.js

Issue 6821009: Introduce runtime function %OptimizeFunctionOnNextCall to manually trigger optimization. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: address comments Created 9 years, 8 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 | « test/mjsunit/compiler/regress-loadfield.js ('k') | test/mjsunit/compiler/regress-stacktrace-methods.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compiler/regress-max.js
diff --git a/test/mjsunit/compiler/regress-max.js b/test/mjsunit/compiler/regress-max.js
index 94c543a6a51dd88d9a1c33b688293b75b4ac9d5d..8dd4451226af6a79b11e482e9bd2175d646a985b 100644
--- a/test/mjsunit/compiler/regress-max.js
+++ b/test/mjsunit/compiler/regress-max.js
@@ -25,10 +25,15 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+// Flags: --allow-natives-syntax
+
// Test Math.max with negative zero as input.
function f(x, y) { return Math.max(x, y) }
-for (var i = 0; i < 1000000; i++) f(0, 0);
+for (var i = 0; i < 5; i++) f(0, 0);
+%OptimizeFunctionOnNextCall(Math.max);
+%OptimizeFunctionOnNextCall(f);
+f(0, 0);
var r = f(-0, -0);
assertEquals(-Infinity, 1 / r);
« no previous file with comments | « test/mjsunit/compiler/regress-loadfield.js ('k') | test/mjsunit/compiler/regress-stacktrace-methods.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698