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

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

Issue 12378080: Adds mrc instruction to arm simulator, assembler, disassembler. (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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 __ EnterFrame((1 << FP) | (1 << IP) | (1 << LR), 0); 63 __ EnterFrame((1 << FP) | (1 << IP) | (1 << LR), 0);
64 } 64 }
65 65
66 66
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
74 void AssemblerMacros::HasDiv(Assembler* assembler, Register rd) {
75 __ mrc(rd, 15, 0, 0, 2, 0);
76 __ Lsr(rd, rd, 24);
77 __ and_(rd, rd, ShifterOperand(0xf));
78 }
79
80
regis 2013/03/04 21:54:52 Move code to CPUFeatures::InitOnce().
73 } // namespace dart 81 } // namespace dart
74 82
75 #endif // defined TARGET_ARCH_ARM 83 #endif // defined TARGET_ARCH_ARM
76 84
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698