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 // The class 'AssemblerMacros' contains assembler instruction groups that | 4 // The class 'AssemblerMacros' contains assembler instruction groups that |
| 5 // are used in Dart. | 5 // are used in Dart. |
| 6 | 6 |
| 7 #ifndef VM_ASSEMBLER_MACROS_ARM_H_ | 7 #ifndef VM_ASSEMBLER_MACROS_ARM_H_ |
| 8 #define VM_ASSEMBLER_MACROS_ARM_H_ | 8 #define VM_ASSEMBLER_MACROS_ARM_H_ |
| 9 | 9 |
| 10 #ifndef VM_ASSEMBLER_MACROS_H_ | 10 #ifndef VM_ASSEMBLER_MACROS_H_ |
| (...skipping 26 matching lines...) Expand all Loading... | |
| 37 // enable easy access to the RawInstruction object of code corresponding | 37 // enable easy access to the RawInstruction object of code corresponding |
| 38 // to this frame. | 38 // to this frame. |
| 39 static void EnterDartFrame(Assembler* assembler, intptr_t frame_size); | 39 static void EnterDartFrame(Assembler* assembler, intptr_t frame_size); |
| 40 static void LeaveDartFrame(Assembler* assembler); | 40 static void LeaveDartFrame(Assembler* assembler); |
| 41 | 41 |
| 42 // Set up a stub frame so that the stack traversal code can easily identify | 42 // Set up a stub frame so that the stack traversal code can easily identify |
| 43 // a stub frame. | 43 // a stub frame. |
| 44 static void EnterStubFrame(Assembler* assembler); | 44 static void EnterStubFrame(Assembler* assembler); |
| 45 static void LeaveStubFrame(Assembler* assembler); | 45 static void LeaveStubFrame(Assembler* assembler); |
| 46 | 46 |
| 47 // Check whether we have an integer division instruction. | |
| 48 // After, rd will be non-zero if we have sdiv and udiv instructions. | |
| 49 static void HasDiv(Assembler* assembler, Register rd); | |
|
regis
2013/03/04 21:54:52
This method is not necessary. The code testing for
| |
| 50 | |
| 47 // Instruction pattern from entrypoint is used in dart frame prologs | 51 // Instruction pattern from entrypoint is used in dart frame prologs |
| 48 // to set up the frame and save a PC which can be used to figure out the | 52 // to set up the frame and save a PC which can be used to figure out the |
| 49 // RawInstruction object corresponding to the code running in the frame. | 53 // RawInstruction object corresponding to the code running in the frame. |
| 50 static const intptr_t kOffsetOfSavedPCfromEntrypoint = Instr::kPCReadOffset; | 54 static const intptr_t kOffsetOfSavedPCfromEntrypoint = Instr::kPCReadOffset; |
| 51 }; | 55 }; |
| 52 | 56 |
| 53 } // namespace dart. | 57 } // namespace dart. |
| 54 | 58 |
| 55 #endif // VM_ASSEMBLER_MACROS_ARM_H_ | 59 #endif // VM_ASSEMBLER_MACROS_ARM_H_ |
| 56 | 60 |
| OLD | NEW |