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

Unified Diff: tests/lib/mirrors/eval_cid_exhaustion_test.dart

Issue 379353003: Implement Evaluate without creating new classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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: tests/lib/mirrors/eval_cid_exhaustion_test.dart
diff --git a/tests/language/regress_18535_test.dart b/tests/lib/mirrors/eval_cid_exhaustion_test.dart
similarity index 63%
copy from tests/language/regress_18535_test.dart
copy to tests/lib/mirrors/eval_cid_exhaustion_test.dart
index 991a8a8da9c33fd9d058bb44316c694aec71f490..1aa58a0a6aeafc5368c79db14ee96253690f76ee 100644
--- a/tests/language/regress_18535_test.dart
+++ b/tests/lib/mirrors/eval_cid_exhaustion_test.dart
@@ -2,11 +2,11 @@
// 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.
-// Regression test for issue 18535.
-
import 'dart:mirrors';
-import 'package:collection/collection.dart';
-void main() {
- print(currentMirrorSystem().libraries);
+main() {
+ const classTableSize = 1 << 16;
hausner 2014/07/10 20:17:43 Maybe a comment that this must be in sync with <in
rmacnak 2014/07/10 22:26:21 Moved to a VM internal test.
+ for (int i = 1; i < classTableSize; i++) {
+ reflect(0).eval("3 + 4");
+ }
}

Powered by Google App Engine
This is Rietveld 408576698