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

Unified Diff: test/mjsunit/allocation-folding.js

Issue 24546003: Revert 3.20 branch to 3.20.17.7 (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.20
Patch Set: Created 7 years, 3 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/cctest/test-strings.cc ('k') | test/mjsunit/regress/regress-crbug-285355.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/allocation-folding.js
diff --git a/test/mjsunit/allocation-folding.js b/test/mjsunit/allocation-folding.js
index ec07392f2c223687f3e6c4bcd6d0df8cabde59f4..fe5fa6d855e5894c2a3f136db2c14a3a865fbe40 100644
--- a/test/mjsunit/allocation-folding.js
+++ b/test/mjsunit/allocation-folding.js
@@ -56,7 +56,7 @@ function doubles() {
doubles(); doubles(); doubles();
%OptimizeFunctionOnNextCall(doubles);
-result = doubles();
+var result = doubles();
gc();
@@ -72,31 +72,8 @@ function doubles_int() {
doubles_int(); doubles_int(); doubles_int();
%OptimizeFunctionOnNextCall(doubles_int);
-result = doubles_int();
+var result = doubles_int();
gc();
assertEquals(result[1], 3.1);
-
-// Test allocation folding over a branch.
-
-function branch_int(left) {
- var elem1 = [1, 2];
- var elem2;
- if (left) {
- elem2 = [3, 4];
- } else {
- elem2 = [5, 6];
- }
- return elem2;
-}
-
-branch_int(1); branch_int(1); branch_int(1);
-%OptimizeFunctionOnNextCall(branch_int);
-result = branch_int(1);
-var result2 = branch_int(0);
-
-gc();
-
-assertEquals(result[1], 4);
-assertEquals(result2[1], 6);
« no previous file with comments | « test/cctest/test-strings.cc ('k') | test/mjsunit/regress/regress-crbug-285355.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698