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

Unified Diff: test/mjsunit/parallel-optimize-disabled.js

Issue 12442002: Details wrt parallel recompilation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: re-added accidental delete Created 7 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
« no previous file with comments | « src/smart-pointers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/parallel-optimize-disabled.js
diff --git a/test/mjsunit/regress/regress-2451.js b/test/mjsunit/parallel-optimize-disabled.js
similarity index 83%
copy from test/mjsunit/regress/regress-2451.js
copy to test/mjsunit/parallel-optimize-disabled.js
index 465e4e68c26f3e3e119cbaf82d50c8f83c6efa9a..2487964bd99a5497c9166c52fe8de4862ac55ba9 100644
--- a/test/mjsunit/regress/regress-2451.js
+++ b/test/mjsunit/parallel-optimize-disabled.js
@@ -25,17 +25,22 @@
// (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: --nodead-code-elimination --parallel-recompilation
// Flags: --allow-natives-syntax
-function f() {
- assertEquals(-1.0, Math.round(-1.5));
- assertEquals(-2.0, Math.round(-2.5));
- assertEquals(-1.0, Math.round(-0.5000000000000001));
+function g() { // g() cannot be optimized.
+ const x = 1;
+ x++;
+}
+
+function f(x) {
+ g();
}
f();
f();
+%OptimizeFunctionOnNextCall(g, "parallel");
%OptimizeFunctionOnNextCall(f);
-f();
-assertTrue(%GetOptimizationStatus(f) != 2);
+f(0); // g() is disabled for optimization on inlining attempt.
+g(); // Attempt to optimize g() should not run into any assertion.
« no previous file with comments | « src/smart-pointers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698