| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 | 5 |
| 6 #ifndef V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 6 #ifndef V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
| 7 #define V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 7 #define V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
| 8 | 8 |
| 9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
| 10 #include "src/mips64/assembler-mips64-inl.h" | 10 #include "src/mips64/assembler-mips64-inl.h" |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void SetRegister(int register_index, int to); | 83 virtual void SetRegister(int register_index, int to); |
| 84 virtual bool Succeed(); | 84 virtual bool Succeed(); |
| 85 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 85 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
| 86 virtual void ClearRegisters(int reg_from, int reg_to); | 86 virtual void ClearRegisters(int reg_from, int reg_to); |
| 87 virtual void WriteStackPointerToRegister(int reg); | 87 virtual void WriteStackPointerToRegister(int reg); |
| 88 virtual bool CanReadUnaligned(); | 88 virtual bool CanReadUnaligned(); |
| 89 | 89 |
| 90 // Called from RegExp if the stack-guard is triggered. | 90 // Called from RegExp if the stack-guard is triggered. |
| 91 // If the code object is relocated, the return address is fixed before | 91 // If the code object is relocated, the return address is fixed before |
| 92 // returning. | 92 // returning. |
| 93 static int CheckStackGuardState(Address* return_address, | 93 static int64_t CheckStackGuardState(Address* return_address, Code* re_code, |
| 94 Code* re_code, | 94 Address re_frame); |
| 95 Address re_frame); | |
| 96 | 95 |
| 97 void print_regexp_frame_constants(); | 96 void print_regexp_frame_constants(); |
| 98 | 97 |
| 99 private: | 98 private: |
| 100 #if defined(MIPS_ABI_N64) | 99 #if defined(MIPS_ABI_N64) |
| 101 // Offsets from frame_pointer() of function parameters and stored registers. | 100 // Offsets from frame_pointer() of function parameters and stored registers. |
| 102 static const int kFramePointer = 0; | 101 static const int kFramePointer = 0; |
| 103 | 102 |
| 104 // Above the frame pointer - Stored registers and stack passed parameters. | 103 // Above the frame pointer - Stored registers and stack passed parameters. |
| 105 // Registers s0 to s7, fp, and ra. | 104 // Registers s0 to s7, fp, and ra. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 Label stack_overflow_label_; | 260 Label stack_overflow_label_; |
| 262 Label internal_failure_label_; | 261 Label internal_failure_label_; |
| 263 }; | 262 }; |
| 264 | 263 |
| 265 #endif // V8_INTERPRETED_REGEXP | 264 #endif // V8_INTERPRETED_REGEXP |
| 266 | 265 |
| 267 | 266 |
| 268 }} // namespace v8::internal | 267 }} // namespace v8::internal |
| 269 | 268 |
| 270 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ | 269 #endif // V8_MIPS_REGEXP_MACRO_ASSEMBLER_MIPS_H_ |
| OLD | NEW |