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

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

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/disassembler_x64.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 #include "vm/disassembler.h"
5 #include "vm/assembler.h" 6 #include "vm/assembler.h"
6 #include "vm/disassembler.h"
7 #include "vm/unit_test.h" 7 #include "vm/unit_test.h"
8 #include "vm/virtual_memory.h" 8 #include "vm/virtual_memory.h"
9 9
10 namespace dart { 10 namespace dart {
11 11
12 // TODO(vegorov) this test is disabled on DBC because there is no PopRegister 12 // TODO(vegorov) this test is disabled on DBC because there is no PopRegister
13 // method on DBC assembler. 13 // method on DBC assembler.
14 #if !defined(PRODUCT) && !defined(TARGET_ARCH_DBC) 14 #if !defined(PRODUCT) && !defined(TARGET_ARCH_DBC)
15 15
16 TEST_CASE(Disassembler) { 16 TEST_CASE(Disassembler) {
17 Assembler assembler; 17 Assembler assembler;
18 // The used instructions work on all platforms. 18 // The used instructions work on all platforms.
19 Register reg = static_cast<Register>(0); 19 Register reg = static_cast<Register>(0);
20 assembler.PopRegister(reg); 20 assembler.PopRegister(reg);
21 assembler.Stop("testing disassembler"); 21 assembler.Stop("testing disassembler");
22 22
23 // Only verify that the disassembler does not crash. 23 // Only verify that the disassembler does not crash.
24 AssemblerTest test("Disassembler", &assembler); 24 AssemblerTest test("Disassembler", &assembler);
25 test.Assemble(); 25 test.Assemble();
26 Disassembler::Disassemble(test.entry(), test.entry() + assembler.CodeSize()); 26 Disassembler::Disassemble(test.entry(), test.entry() + assembler.CodeSize());
27 } 27 }
28 28
29 #endif // !PRODUCT 29 #endif // !PRODUCT
30 30
31 } // namespace dart 31 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/disassembler_ia32.cc ('k') | runtime/vm/disassembler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698