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

Side by Side Diff: runtime/vm/instructions_ia32_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/instructions_ia32.h ('k') | runtime/vm/instructions_x64.h » ('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 "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler.h" 8 #include "vm/assembler.h"
9 #include "vm/instructions.h" 9 #include "vm/instructions.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
11 #include "vm/stub_code.h" 11 #include "vm/stub_code.h"
12 #include "vm/unit_test.h" 12 #include "vm/unit_test.h"
13 #include "vm/virtual_memory.h" 13 #include "vm/virtual_memory.h"
14 14
15 namespace dart { 15 namespace dart {
16 16
17 #define __ assembler-> 17 #define __ assembler->
18 18
19 ASSEMBLER_TEST_GENERATE(Call, assembler) { 19 ASSEMBLER_TEST_GENERATE(Call, assembler) {
20 __ call(&StubCode::InvokeDartCode_entry()->label()); 20 __ call(&StubCode::InvokeDartCode_entry()->label());
21 __ ret(); 21 __ ret();
22 } 22 }
23 23
24
25 ASSEMBLER_TEST_RUN(Call, test) { 24 ASSEMBLER_TEST_RUN(Call, test) {
26 CallPattern call(test->entry()); 25 CallPattern call(test->entry());
27 EXPECT_EQ(StubCode::InvokeDartCode_entry()->EntryPoint(), 26 EXPECT_EQ(StubCode::InvokeDartCode_entry()->EntryPoint(),
28 call.TargetAddress()); 27 call.TargetAddress());
29 } 28 }
30 29
31
32 } // namespace dart 30 } // namespace dart
33 31
34 #endif // defined TARGET_ARCH_IA32 32 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/instructions_ia32.h ('k') | runtime/vm/instructions_x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698