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

Unified Diff: tests/language/vm/regress_16873_test.dart

Issue 167893006: MIPS: Fix bug in allocation stub's slow path. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: updated status file 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
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/vm/regress_16873_test.dart
===================================================================
--- tests/language/vm/regress_16873_test.dart (revision 0)
+++ tests/language/vm/regress_16873_test.dart (revision 0)
@@ -0,0 +1,21 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+// VMOptions=--new_gen_heap_size=1 --no_inline_alloc
+
+// Regression test for slow-path allocation in the allocation stub.
regis 2014/02/18 03:27:43 Technically speaking, --slow_path is not synonym w
Florian Schneider 2014/02/18 09:58:11 I'm using --no-inline-alloc here. We should have a
+
+library map_test;
+import 'dart:collection';
+
+void testCollection(var collection, n) {
+ for (int i = 0; i < n; i++) {
+ if (i % 1000 == 0) print(i);
+ collection.add(i);
+ }
+}
+
+main() {
+ const int N = 100000;
+ testCollection(new LinkedHashSet(), N);
+}
« no previous file with comments | « runtime/vm/stub_code_mips.cc ('k') | tests/lib/lib.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698