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

Unified Diff: test/mjsunit/regress/number-named-call-deopt.js

Issue 185653004: Experimental parser: merge to r19637 (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 years, 10 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/number-named-call-deopt.js
diff --git a/test/mjsunit/regress/regress-1898.js b/test/mjsunit/regress/number-named-call-deopt.js
similarity index 84%
copy from test/mjsunit/regress/regress-1898.js
copy to test/mjsunit/regress/number-named-call-deopt.js
index 5440446fbf78ca593e8748cd54ea2aefad047542..1598af12b4914aaab50171628c2d482351e09b84 100644
--- a/test/mjsunit/regress/regress-1898.js
+++ b/test/mjsunit/regress/number-named-call-deopt.js
@@ -1,4 +1,4 @@
-// Copyright 2012 the V8 project authors. All rights reserved.
+// Copyright 2014 the V8 project authors. All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
@@ -27,11 +27,15 @@
// Flags: --allow-natives-syntax
-function f(x) {
- Math.log(Math.min(0.1, Math.abs(x)));
+function f(x, deopt, osr) {
+ var res = "result";
+ void(x.toString(10, deopt + 0));
+ if (osr) for (var i = 0; i < 100000; i++) { }
+ return res;
}
-f(0.1);
-f(0.1);
+f(4, 0, false);
+f(4, 0, false);
+f(4, 0, false);
%OptimizeFunctionOnNextCall(f);
-f(0.1);
+assertEquals("result", f(4, "deopt", true));
« no previous file with comments | « test/mjsunit/regress/comparison-in-effect-context-deopt.js ('k') | test/mjsunit/regress/polymorphic-accessor-test-context.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698