OLD | NEW |
1 // Copyright (c) 2011, 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_api.h" | 5 #include "include/dart_api.h" |
6 | 6 #include "platform/assert.h" |
7 #include "vm/assert.h" | |
8 #include "vm/dart_api_impl.h" | 7 #include "vm/dart_api_impl.h" |
9 #include "vm/unit_test.h" | 8 #include "vm/unit_test.h" |
10 | 9 |
11 namespace dart { | 10 namespace dart { |
12 | 11 |
13 #if defined(TARGET_ARCH_IA32) // only ia32 can run exception tests. | 12 #if defined(TARGET_ARCH_IA32) // only ia32 can run exception tests. |
14 #define FUNCTION_NAME(name) UnhandledExcp_##name | 13 #define FUNCTION_NAME(name) UnhandledExcp_##name |
15 #define REGISTER_FUNCTION(name, count) \ | 14 #define REGISTER_FUNCTION(name, count) \ |
16 { ""#name, FUNCTION_NAME(name), count }, | 15 { ""#name, FUNCTION_NAME(name), count }, |
17 | 16 |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 reinterpret_cast<Dart_NativeEntryResolver>(native_lookup)); | 129 reinterpret_cast<Dart_NativeEntryResolver>(native_lookup)); |
131 Dart_InvokeStatic(lib, | 130 Dart_InvokeStatic(lib, |
132 Dart_NewString("UnhandledExceptionTest"), | 131 Dart_NewString("UnhandledExceptionTest"), |
133 Dart_NewString("testMain"), | 132 Dart_NewString("testMain"), |
134 0, | 133 0, |
135 NULL); | 134 NULL); |
136 } | 135 } |
137 #endif // TARGET_ARCH_IA32. | 136 #endif // TARGET_ARCH_IA32. |
138 | 137 |
139 } // namespace dart | 138 } // namespace dart |
OLD | NEW |