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

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

Issue 9242025: Enable remaining execution tests on x64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 11 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/debugger_api_impl_test.cc ('k') | runtime/vm/heap_test.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_api.h" 5 #include "include/dart_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/unit_test.h" 8 #include "vm/unit_test.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 #if defined(TARGET_ARCH_IA32) // only ia32 can run exception tests. 12 // Only ia32 and x64 can run execution tests.
13 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64)
13 #define FUNCTION_NAME(name) UnhandledExcp_##name 14 #define FUNCTION_NAME(name) UnhandledExcp_##name
14 #define REGISTER_FUNCTION(name, count) \ 15 #define REGISTER_FUNCTION(name, count) \
15 { ""#name, FUNCTION_NAME(name), count }, 16 { ""#name, FUNCTION_NAME(name), count },
16 17
17 18
18 void FUNCTION_NAME(Unhandled_equals)(Dart_NativeArguments args) { 19 void FUNCTION_NAME(Unhandled_equals)(Dart_NativeArguments args) {
19 NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args); 20 NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
20 const Instance& expected = Instance::CheckedHandle(arguments->At(0)); 21 const Instance& expected = Instance::CheckedHandle(arguments->At(0));
21 const Instance& actual = Instance::CheckedHandle(arguments->At(1)); 22 const Instance& actual = Instance::CheckedHandle(arguments->At(1));
22 if (!expected.Equals(actual)) { 23 if (!expected.Equals(actual)) {
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 "}"; 127 "}";
127 Dart_Handle lib = TestCase::LoadTestScript( 128 Dart_Handle lib = TestCase::LoadTestScript(
128 kScriptChars, 129 kScriptChars,
129 reinterpret_cast<Dart_NativeEntryResolver>(native_lookup)); 130 reinterpret_cast<Dart_NativeEntryResolver>(native_lookup));
130 Dart_InvokeStatic(lib, 131 Dart_InvokeStatic(lib,
131 Dart_NewString("UnhandledExceptionTest"), 132 Dart_NewString("UnhandledExceptionTest"),
132 Dart_NewString("testMain"), 133 Dart_NewString("testMain"),
133 0, 134 0,
134 NULL); 135 NULL);
135 } 136 }
136 #endif // TARGET_ARCH_IA32. 137 #endif // defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64).
137 138
138 } // namespace dart 139 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/debugger_api_impl_test.cc ('k') | runtime/vm/heap_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698