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

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

Issue 12381034: Second codegen test passing on ARM (simulated). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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/assembler_arm.cc ('k') | runtime/vm/code_generator_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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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_ARM) 6 #if defined(TARGET_ARCH_ARM)
7 7
8 #include "vm/assembler_macros.h" 8 #include "vm/assembler_macros.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 22 matching lines...) Expand all
33 if (offset != 0) { 33 if (offset != 0) {
34 // Adjust saved PC for any intrinsic code that could have been generated 34 // Adjust saved PC for any intrinsic code that could have been generated
35 // before a frame is created. Use PP as temp register. 35 // before a frame is created. Use PP as temp register.
36 __ ldr(PP, Address(FP, 2 * kWordSize)); 36 __ ldr(PP, Address(FP, 2 * kWordSize));
37 __ AddImmediate(PP, PP, -offset); 37 __ AddImmediate(PP, PP, -offset);
38 __ str(PP, Address(FP, 2 * kWordSize)); 38 __ str(PP, Address(FP, 2 * kWordSize));
39 } 39 }
40 40
41 // Setup pool pointer for this dart function. 41 // Setup pool pointer for this dart function.
42 const intptr_t object_pool_pc_dist = 42 const intptr_t object_pool_pc_dist =
43 Instr::kPCReadOffset - assembler->CodeSize() - 43 Instructions::HeaderSize() - Instructions::object_pool_offset() +
44 Instructions::HeaderSize() + Instructions::object_pool_offset(); 44 assembler->CodeSize() + Instr::kPCReadOffset;
45 __ ldr(PP, Address(PC, object_pool_pc_dist)); 45 __ ldr(PP, Address(PC, -object_pool_pc_dist));
46 46
47 // Reserve space for locals. 47 // Reserve space for locals.
48 __ AddImmediate(SP, -frame_size); 48 __ AddImmediate(SP, -frame_size);
49 } 49 }
50 50
51 51
52 void AssemblerMacros::LeaveDartFrame(Assembler* assembler) { 52 void AssemblerMacros::LeaveDartFrame(Assembler* assembler) {
53 __ LeaveFrame((1 << PP) | (1 << FP) | (1 << LR)); 53 __ LeaveFrame((1 << PP) | (1 << FP) | (1 << LR));
54 // Adjust SP for PC pushed in EnterDartFrame. 54 // Adjust SP for PC pushed in EnterDartFrame.
55 __ AddImmediate(SP, kWordSize); 55 __ AddImmediate(SP, kWordSize);
(...skipping 11 matching lines...) Expand all
67 void AssemblerMacros::LeaveStubFrame(Assembler* assembler) { 67 void AssemblerMacros::LeaveStubFrame(Assembler* assembler) {
68 __ LeaveFrame((1 << FP) | (1 << LR)); 68 __ LeaveFrame((1 << FP) | (1 << LR));
69 // Adjust SP for null PC pushed in EnterStubFrame. 69 // Adjust SP for null PC pushed in EnterStubFrame.
70 __ AddImmediate(SP, kWordSize); 70 __ AddImmediate(SP, kWordSize);
71 } 71 }
72 72
73 } // namespace dart 73 } // namespace dart
74 74
75 #endif // defined TARGET_ARCH_ARM 75 #endif // defined TARGET_ARCH_ARM
76 76
OLDNEW
« no previous file with comments | « runtime/vm/assembler_arm.cc ('k') | runtime/vm/code_generator_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698