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

Unified Diff: test/mjsunit/regress/regress-crbug-298392.js

Issue 24704005: Merged r16393 into 3.20 branch. (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
Index: test/mjsunit/regress/regress-crbug-298392.js
diff --git a/test/mjsunit/regress/regress-264203.js b/test/mjsunit/regress/regress-crbug-298392.js
similarity index 82%
copy from test/mjsunit/regress/regress-264203.js
copy to test/mjsunit/regress/regress-crbug-298392.js
index fa0075662575d85241b6af82c5945cca32938991..8370654b6c6ab6774b46d491002ce60cb6d6bedb 100644
--- a/test/mjsunit/regress/regress-264203.js
+++ b/test/mjsunit/regress/regress-crbug-298392.js
@@ -25,20 +25,27 @@
// (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
+function foo() {
+ return [[1,2,3], [5,6,6]];
+}
+
+function bar() {
+ return ["foo", "bar"];
+}
-function foo(x) {
- var a = [1, 2, 3, 4, 5, 6, 7, 8];
- a[x + 5];
- var result;
- for (var i = 0; i < 3; i++) {
- result = a[0 - x];
+function baz() {
+ return [foo(), bar(), foo(), bar()];
+}
+
+function thingy() {
+ var result = [];
+ for (var i = 0; i < 50000; ++i) {
+ result.push(baz());
}
return result;
}
-foo(0);
-foo(0);
-%OptimizeFunctionOnNextCall(foo);
-var r = foo(-2);
-assertEquals(3, r);
+var size = thingy().length;
+if (size != 50000) {
+ throw "Error: bad size: " + size;
+}
« no previous file with comments | « test/mjsunit/regress/regress-crbug-285355.js ('k') | test/mjsunit/regress/regress-regexp-construct-result.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698