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

Side by Side Diff: runtime/vm/snapshot_test.cc

Issue 13983016: Support debugger API on ARM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "include/dart_debugger_api.h" 5 #include "include/dart_debugger_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/bigint_operations.h" 7 #include "vm/bigint_operations.h"
8 #include "vm/class_finalizer.h" 8 #include "vm/class_finalizer.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_api_message.h" 10 #include "vm/dart_api_message.h"
(...skipping 887 matching lines...) Expand 10 before | Expand all | Expand 10 after
898 EXPECT(!lib.IsNull()); 898 EXPECT(!lib.IsNull());
899 IterateScripts(lib); 899 IterateScripts(lib);
900 900
901 // Check mirrors lib. 901 // Check mirrors lib.
902 lib = Library::MirrorsLibrary(); 902 lib = Library::MirrorsLibrary();
903 EXPECT(!lib.IsNull()); 903 EXPECT(!lib.IsNull());
904 IterateScripts(lib); 904 IterateScripts(lib);
905 } 905 }
906 906
907 907
908 // Only ia32 and x64 can run execution tests. 908 #if defined(TARGET_ARCH_IA32) || \
909 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) 909 defined(TARGET_ARCH_X64) || \
910 defined(TARGET_ARCH_ARM)
911
912
910 UNIT_TEST_CASE(FullSnapshot) { 913 UNIT_TEST_CASE(FullSnapshot) {
911 const char* kScriptChars = 914 const char* kScriptChars =
912 "class Fields {\n" 915 "class Fields {\n"
913 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n" 916 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n"
914 " int fld1;\n" 917 " int fld1;\n"
915 " final int fld2;\n" 918 " final int fld2;\n"
916 " final int bigint_fld = 0xfffffffffff;\n" 919 " final int bigint_fld = 0xfffffffffff;\n"
917 " static int fld3;\n" 920 " static int fld3;\n"
918 " static const int smi_sfld = 10;\n" 921 " static const int smi_sfld = 10;\n"
919 " static const int bigint_sfld = 0xfffffffffff;\n" 922 " static const int bigint_sfld = 0xfffffffffff;\n"
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2487 2490
2488 result = Dart_RunLoop(); 2491 result = Dart_RunLoop();
2489 EXPECT(Dart_IsError(result)); 2492 EXPECT(Dart_IsError(result));
2490 EXPECT(Dart_ErrorHasException(result)); 2493 EXPECT(Dart_ErrorHasException(result));
2491 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", 2494 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n",
2492 Dart_GetError(result)); 2495 Dart_GetError(result));
2493 2496
2494 Dart_ExitScope(); 2497 Dart_ExitScope();
2495 } 2498 }
2496 2499
2497 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64). 2500 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64 || TARGET_ARCH_ARM
2498 2501
2499 } // namespace dart 2502 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/simulator_mips.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698