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

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

Issue 264753002: Adds Simulator Longjmp and enables many tests for arm64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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/dart_entry_test.cc ('k') | runtime/vm/exceptions_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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 // TODO(zra): Remove when tests are ready to enable.
6 #include "platform/globals.h"
7 #if !defined(TARGET_ARCH_ARM64)
8
9 #include "vm/assembler.h" 5 #include "vm/assembler.h"
10 #include "vm/disassembler.h" 6 #include "vm/disassembler.h"
11 #include "vm/unit_test.h" 7 #include "vm/unit_test.h"
12 #include "vm/virtual_memory.h" 8 #include "vm/virtual_memory.h"
13 9
14 namespace dart { 10 namespace dart {
15 11
16 TEST_CASE(Disassembler) { 12 TEST_CASE(Disassembler) {
17 Assembler assembler; 13 Assembler assembler;
18 // The used instructions work on all platforms. 14 // The used instructions work on all platforms.
19 Register reg = static_cast<Register>(0); 15 Register reg = static_cast<Register>(0);
20 assembler.PopRegister(reg); 16 assembler.PopRegister(reg);
21 assembler.Stop("testing disassembler"); 17 assembler.Stop("testing disassembler");
22 18
23 // Only verify that the disassembler does not crash. 19 // Only verify that the disassembler does not crash.
24 AssemblerTest test("Disassembler", &assembler); 20 AssemblerTest test("Disassembler", &assembler);
25 test.Assemble(); 21 test.Assemble();
26 Disassembler::Disassemble(test.entry(), test.entry() + assembler.CodeSize()); 22 Disassembler::Disassemble(test.entry(), test.entry() + assembler.CodeSize());
27 } 23 }
28 24
29 } // namespace dart 25 } // namespace dart
30
31 #endif // !defined(TARGET_ARCH_ARM64)
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry_test.cc ('k') | runtime/vm/exceptions_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698