| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ | 5 #ifndef V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ |
| 6 #define V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ | 6 #define V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ |
| 7 | 7 |
| 8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
| 9 #include "src/ppc/assembler-ppc.h" | 9 #include "src/ppc/assembler-ppc.h" |
| 10 #include "src/ppc/frames-ppc.h" | 10 #include "src/ppc/frames-ppc.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 virtual void PushRegister(int register_index, | 71 virtual void PushRegister(int register_index, |
| 72 StackCheckFlag check_stack_limit); | 72 StackCheckFlag check_stack_limit); |
| 73 virtual void ReadCurrentPositionFromRegister(int reg); | 73 virtual void ReadCurrentPositionFromRegister(int reg); |
| 74 virtual void ReadStackPointerFromRegister(int reg); | 74 virtual void ReadStackPointerFromRegister(int reg); |
| 75 virtual void SetCurrentPositionFromEnd(int by); | 75 virtual void SetCurrentPositionFromEnd(int by); |
| 76 virtual void SetRegister(int register_index, int to); | 76 virtual void SetRegister(int register_index, int to); |
| 77 virtual bool Succeed(); | 77 virtual bool Succeed(); |
| 78 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 78 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
| 79 virtual void ClearRegisters(int reg_from, int reg_to); | 79 virtual void ClearRegisters(int reg_from, int reg_to); |
| 80 virtual void WriteStackPointerToRegister(int reg); | 80 virtual void WriteStackPointerToRegister(int reg); |
| 81 virtual bool CanReadUnaligned(); | |
| 82 | 81 |
| 83 // Called from RegExp if the stack-guard is triggered. | 82 // Called from RegExp if the stack-guard is triggered. |
| 84 // If the code object is relocated, the return address is fixed before | 83 // If the code object is relocated, the return address is fixed before |
| 85 // returning. | 84 // returning. |
| 86 static int CheckStackGuardState(Address* return_address, Code* re_code, | 85 static int CheckStackGuardState(Address* return_address, Code* re_code, |
| 87 Address re_frame); | 86 Address re_frame); |
| 88 | 87 |
| 89 private: | 88 private: |
| 90 // Offsets from frame_pointer() of function parameters and stored registers. | 89 // Offsets from frame_pointer() of function parameters and stored registers. |
| 91 static const int kFramePointer = 0; | 90 static const int kFramePointer = 0; |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 206 |
| 208 // Set of non-volatile registers saved/restored by generated regexp code. | 207 // Set of non-volatile registers saved/restored by generated regexp code. |
| 209 const RegList kRegExpCalleeSaved = | 208 const RegList kRegExpCalleeSaved = |
| 210 1 << 25 | 1 << 26 | 1 << 27 | 1 << 28 | 1 << 29 | 1 << 30 | 1 << 31; | 209 1 << 25 | 1 << 26 | 1 << 27 | 1 << 28 | 1 << 29 | 1 << 30 | 1 << 31; |
| 211 | 210 |
| 212 #endif // V8_INTERPRETED_REGEXP | 211 #endif // V8_INTERPRETED_REGEXP |
| 213 } // namespace internal | 212 } // namespace internal |
| 214 } // namespace v8 | 213 } // namespace v8 |
| 215 | 214 |
| 216 #endif // V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ | 215 #endif // V8_REGEXP_PPC_REGEXP_MACRO_ASSEMBLER_PPC_H_ |
| OLD | NEW |