OLD | NEW |
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/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
8 #include "vm/thread.h" | 8 #include "vm/thread.h" |
9 #include "vm/unit_test.h" | 9 #include "vm/unit_test.h" |
10 | 10 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 Dart_ActivationFrame frame; | 72 Dart_ActivationFrame frame; |
73 Dart_Handle res = Dart_GetActivationFrame(trace, 0, &frame); | 73 Dart_Handle res = Dart_GetActivationFrame(trace, 0, &frame); |
74 EXPECT_TRUE(res); | 74 EXPECT_TRUE(res); |
75 Dart_Handle func_name; | 75 Dart_Handle func_name; |
76 Dart_Handle url; | 76 Dart_Handle url; |
77 intptr_t line_number = 0; | 77 intptr_t line_number = 0; |
78 intptr_t library_id = 0; | 78 intptr_t library_id = 0; |
79 res = Dart_ActivationFrameInfo( | 79 res = Dart_ActivationFrameInfo( |
80 frame, &func_name, &url, &line_number, &library_id); | 80 frame, &func_name, &url, &line_number, &library_id); |
81 EXPECT_TRUE(res); | 81 EXPECT_TRUE(res); |
82 OS::SNPrint(info_str, sizeof(info_str), "function %s (%s:%"Pd")", | 82 OS::SNPrint(info_str, sizeof(info_str), "function %s (%s:%" Pd ")", |
83 ToCString(func_name), ToCString(url), line_number); | 83 ToCString(func_name), ToCString(url), line_number); |
84 return info_str; | 84 return info_str; |
85 } | 85 } |
86 | 86 |
87 | 87 |
88 static void PrintValue(Dart_Handle value, bool expand); | 88 static void PrintValue(Dart_Handle value, bool expand); |
89 | 89 |
90 | 90 |
91 static void PrintObjectList(Dart_Handle list, const char* prefix, bool expand) { | 91 static void PrintObjectList(Dart_Handle list, const char* prefix, bool expand) { |
92 intptr_t list_length = 0; | 92 intptr_t list_length = 0; |
(...skipping 1608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1701 | 1701 |
1702 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); | 1702 Dart_Handle list_type = Dart_InstanceGetType(list_access_test_obj); |
1703 Dart_Handle super_type = Dart_GetSupertype(list_type); | 1703 Dart_Handle super_type = Dart_GetSupertype(list_type); |
1704 EXPECT(!Dart_IsError(super_type)); | 1704 EXPECT(!Dart_IsError(super_type)); |
1705 super_type = Dart_GetSupertype(super_type); | 1705 super_type = Dart_GetSupertype(super_type); |
1706 EXPECT(!Dart_IsError(super_type)); | 1706 EXPECT(!Dart_IsError(super_type)); |
1707 EXPECT(super_type == Dart_Null()); | 1707 EXPECT(super_type == Dart_Null()); |
1708 } | 1708 } |
1709 | 1709 |
1710 } // namespace dart | 1710 } // namespace dart |
OLD | NEW |