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

Unified Diff: tests/standalone/vmservice/field_script.dart

Issue 24075002: Expose field data, use class id, and merge all collections into "objects" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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 | « runtime/vm/service.cc ('k') | tests/standalone/vmservice/isolate_bad_class_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/standalone/vmservice/field_script.dart
diff --git a/tests/standalone/vmservice/field_script.dart b/tests/standalone/vmservice/field_script.dart
new file mode 100644
index 0000000000000000000000000000000000000000..824a502578cbf49c3c4be11fdac875c2d629a718
--- /dev/null
+++ b/tests/standalone/vmservice/field_script.dart
@@ -0,0 +1,41 @@
+// 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.
+
+library unknown_command_script;
+
+import 'dart:io';
+import 'dart:typed_data';
+
+class Banana {
+ final Float32List final_fixed_length_list = new Float32List(4);
+ Float32List fixed_length_list = new Float32List(4);
+ String name = '';
+ var a = 44;
+}
+
+
+class BadBanana {
+ final Float32List final_fixed_length_list;
+ final List fixed_length_array = new List(3);
+ num v;
+ const c = 4;
+ BadBanana() : final_fixed_length_list = new Float32List(1);
+ BadBanana.variable() : final_fixed_length_list = new Float32List(2);
+}
+
+main() {
+ for (int i = 0; i < 2000; i++) {
+ Banana b = new Banana();
+ b.name = 'Banana';
+ BadBanana bb = new BadBanana();
+ bb.v = 1.0;
+ }
+ var bb = new BadBanana.variable();
+ bb.v = 2.0;
+ var b = new Banana();
+ b.a = 'foo';
+ print(''); // Print blank line to signal that we are ready.
+ // Wait until signaled from spawning test.
+ stdin.first.then((_) => exit(0));
+}
« no previous file with comments | « runtime/vm/service.cc ('k') | tests/standalone/vmservice/isolate_bad_class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698