Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 |
| OLD | NEW |