| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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_S390_REGEXP_MACRO_ASSEMBLER_S390_H_ | 5 #ifndef V8_S390_REGEXP_MACRO_ASSEMBLER_S390_H_ |
| 6 #define V8_S390_REGEXP_MACRO_ASSEMBLER_S390_H_ | 6 #define V8_S390_REGEXP_MACRO_ASSEMBLER_S390_H_ |
| 7 | 7 |
| 8 #include "src/macro-assembler.h" | 8 #include "src/macro-assembler.h" |
| 9 #include "src/regexp/regexp-macro-assembler.h" | 9 #include "src/regexp/regexp-macro-assembler.h" |
| 10 #include "src/s390/assembler-s390.h" | 10 #include "src/s390/assembler-s390.h" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 virtual void PushRegister(int register_index, | 70 virtual void PushRegister(int register_index, |
| 71 StackCheckFlag check_stack_limit); | 71 StackCheckFlag check_stack_limit); |
| 72 virtual void ReadCurrentPositionFromRegister(int reg); | 72 virtual void ReadCurrentPositionFromRegister(int reg); |
| 73 virtual void ReadStackPointerFromRegister(int reg); | 73 virtual void ReadStackPointerFromRegister(int reg); |
| 74 virtual void SetCurrentPositionFromEnd(int by); | 74 virtual void SetCurrentPositionFromEnd(int by); |
| 75 virtual void SetRegister(int register_index, int to); | 75 virtual void SetRegister(int register_index, int to); |
| 76 virtual bool Succeed(); | 76 virtual bool Succeed(); |
| 77 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 77 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
| 78 virtual void ClearRegisters(int reg_from, int reg_to); | 78 virtual void ClearRegisters(int reg_from, int reg_to); |
| 79 virtual void WriteStackPointerToRegister(int reg); | 79 virtual void WriteStackPointerToRegister(int reg); |
| 80 virtual bool CanReadUnaligned(); | |
| 81 | 80 |
| 82 // Called from RegExp if the stack-guard is triggered. | 81 // Called from RegExp if the stack-guard is triggered. |
| 83 // If the code object is relocated, the return address is fixed before | 82 // If the code object is relocated, the return address is fixed before |
| 84 // returning. | 83 // returning. |
| 85 static int CheckStackGuardState(Address* return_address, Code* re_code, | 84 static int CheckStackGuardState(Address* return_address, Code* re_code, |
| 86 Address re_frame); | 85 Address re_frame); |
| 87 | 86 |
| 88 private: | 87 private: |
| 89 // Offsets from frame_pointer() of function parameters and stored registers. | 88 // Offsets from frame_pointer() of function parameters and stored registers. |
| 90 static const int kFramePointer = 0; | 89 static const int kFramePointer = 0; |
| (...skipping 116 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 << 6 | 1 << 7 | 1 << 8 | 1 << 9 | 1 << 10 | 1 << 11 | 1 << 13; | 209 1 << 6 | 1 << 7 | 1 << 8 | 1 << 9 | 1 << 10 | 1 << 11 | 1 << 13; |
| 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_S390_REGEXP_MACRO_ASSEMBLER_S390_H_ | 215 #endif // V8_S390_REGEXP_MACRO_ASSEMBLER_S390_H_ |
| OLD | NEW |