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

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

Issue 14284020: Adds support for debugger API on MIPS. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 7 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/object_store.cc ('k') | runtime/vm/stack_frame_mips.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 #if defined(TARGET_ARCH_IA32) || \
909 defined(TARGET_ARCH_X64) || \
910 defined(TARGET_ARCH_ARM)
911
912
913 UNIT_TEST_CASE(FullSnapshot) { 908 UNIT_TEST_CASE(FullSnapshot) {
914 const char* kScriptChars = 909 const char* kScriptChars =
915 "class Fields {\n" 910 "class Fields {\n"
916 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n" 911 " Fields(int i, int j) : fld1 = i, fld2 = j {}\n"
917 " int fld1;\n" 912 " int fld1;\n"
918 " final int fld2;\n" 913 " final int fld2;\n"
919 " final int bigint_fld = 0xfffffffffff;\n" 914 " final int bigint_fld = 0xfffffffffff;\n"
920 " static int fld3;\n" 915 " static int fld3;\n"
921 " static const int smi_sfld = 10;\n" 916 " static const int smi_sfld = 10;\n"
922 " static const int bigint_sfld = 0xfffffffffff;\n" 917 " static const int bigint_sfld = 0xfffffffffff;\n"
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
2490 2485
2491 result = Dart_RunLoop(); 2486 result = Dart_RunLoop();
2492 EXPECT(Dart_IsError(result)); 2487 EXPECT(Dart_IsError(result));
2493 EXPECT(Dart_ErrorHasException(result)); 2488 EXPECT(Dart_ErrorHasException(result));
2494 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n", 2489 EXPECT_SUBSTRING("Exception: nulltruefalse123456æøå3.14[]100123456789\n",
2495 Dart_GetError(result)); 2490 Dart_GetError(result));
2496 2491
2497 Dart_ExitScope(); 2492 Dart_ExitScope();
2498 } 2493 }
2499 2494
2500 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64 || TARGET_ARCH_ARM
2501
2502 } // namespace dart 2495 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object_store.cc ('k') | runtime/vm/stack_frame_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698