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

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

Issue 14328026: Enable stack frame vm tests 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/flow_graph_compiler_arm.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_api.h" 5 #include "include/dart_api.h"
6 #include "platform/assert.h" 6 #include "platform/assert.h"
7 #include "vm/class_finalizer.h" 7 #include "vm/class_finalizer.h"
8 #include "vm/compiler.h" 8 #include "vm/compiler.h"
9 #include "vm/dart_api_impl.h" 9 #include "vm/dart_api_impl.h"
10 #include "vm/dart_entry.h" 10 #include "vm/dart_entry.h"
11 #include "vm/resolver.h" 11 #include "vm/resolver.h"
12 #include "vm/stack_frame.h" 12 #include "vm/stack_frame.h"
13 #include "vm/unit_test.h" 13 #include "vm/unit_test.h"
14 #include "vm/verifier.h" 14 #include "vm/verifier.h"
15 #include "vm/zone.h" 15 #include "vm/zone.h"
16 16
17 namespace dart { 17 namespace dart {
18 18
19 // Only ia32 and x64 can run stack frame iteration tests. 19 // Only ia32, x64, and arm can run stack frame iteration tests.
20 #if defined(TARGET_ARCH_IA32) || defined(TARGET_ARCH_X64) 20 #if defined(TARGET_ARCH_IA32) || \
21 defined(TARGET_ARCH_X64) || \
22 defined(TARGET_ARCH_ARM)
23
21 // Unit test for empty stack frame iteration. 24 // Unit test for empty stack frame iteration.
22 TEST_CASE(EmptyStackFrameIteration) { 25 TEST_CASE(EmptyStackFrameIteration) {
23 StackFrameIterator iterator(StackFrameIterator::kValidateFrames); 26 StackFrameIterator iterator(StackFrameIterator::kValidateFrames);
24 EXPECT(!iterator.HasNextFrame()); 27 EXPECT(!iterator.HasNextFrame());
25 EXPECT(iterator.NextFrame() == NULL); 28 EXPECT(iterator.NextFrame() == NULL);
26 VerifyPointersVisitor::VerifyPointers(); 29 VerifyPointersVisitor::VerifyPointers();
27 } 30 }
28 31
29 32
30 // Unit test for empty dart stack frame iteration. 33 // Unit test for empty dart stack frame iteration.
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 " var obj = new StackFrame2Test();" 282 " var obj = new StackFrame2Test();"
280 " StackFrame.equals(5, obj.foo(101, 202));" 283 " StackFrame.equals(5, obj.foo(101, 202));"
281 " }" 284 " }"
282 "}"; 285 "}";
283 Dart_Handle lib = TestCase::LoadTestScript( 286 Dart_Handle lib = TestCase::LoadTestScript(
284 kScriptChars, 287 kScriptChars,
285 reinterpret_cast<Dart_NativeEntryResolver>(native_lookup)); 288 reinterpret_cast<Dart_NativeEntryResolver>(native_lookup));
286 Dart_Handle cls = Dart_GetClass(lib, NewString("StackFrame2Test")); 289 Dart_Handle cls = Dart_GetClass(lib, NewString("StackFrame2Test"));
287 EXPECT_VALID(Dart_Invoke(cls, NewString("testMain"), 0, NULL)); 290 EXPECT_VALID(Dart_Invoke(cls, NewString("testMain"), 0, NULL));
288 } 291 }
289 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64. 292
293 #endif // TARGET_ARCH_IA32 || TARGET_ARCH_X64 || TARGET_ARCH_ARM
290 294
291 } // namespace dart 295 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/stub_code_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698