| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); | 109 virtual void WriteCurrentPositionToRegister(int reg, int cp_offset); |
| 110 virtual void ClearRegisters(int reg_from, int reg_to); | 110 virtual void ClearRegisters(int reg_from, int reg_to); |
| 111 virtual void WriteStackPointerToRegister(int reg); | 111 virtual void WriteStackPointerToRegister(int reg); |
| 112 | 112 |
| 113 // Called from RegExp if the stack-guard is triggered. | 113 // Called from RegExp if the stack-guard is triggered. |
| 114 // If the code object is relocated, the return address is fixed before | 114 // If the code object is relocated, the return address is fixed before |
| 115 // returning. | 115 // returning. |
| 116 static int CheckStackGuardState(Address* return_address, | 116 static int CheckStackGuardState(Address* return_address, |
| 117 Code* re_code, | 117 Code* re_code, |
| 118 Address re_frame); | 118 Address re_frame); |
| 119 |
| 119 private: | 120 private: |
| 120 // Offsets from frame_pointer() of function parameters and stored registers. | 121 // Offsets from frame_pointer() of function parameters and stored registers. |
| 121 static const int kFramePointer = 0; | 122 static const int kFramePointer = 0; |
| 122 | 123 |
| 123 // Above the frame pointer - Stored registers and stack passed parameters. | 124 // Above the frame pointer - Stored registers and stack passed parameters. |
| 124 // Register 4..11. | 125 // Register 4..11. |
| 125 static const int kStoredRegisters = kFramePointer; | 126 static const int kStoredRegisters = kFramePointer; |
| 126 // Return address (stored from link register, read into pc on return). | 127 // Return address (stored from link register, read into pc on return). |
| 127 static const int kReturnAddress = kStoredRegisters + 8 * kPointerSize; | 128 static const int kReturnAddress = kStoredRegisters + 8 * kPointerSize; |
| 128 static const int kSecondaryReturnAddress = kReturnAddress + kPointerSize; | 129 static const int kSecondaryReturnAddress = kReturnAddress + kPointerSize; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 Label check_preempt_label_; | 248 Label check_preempt_label_; |
| 248 Label stack_overflow_label_; | 249 Label stack_overflow_label_; |
| 249 }; | 250 }; |
| 250 | 251 |
| 251 #endif // V8_INTERPRETED_REGEXP | 252 #endif // V8_INTERPRETED_REGEXP |
| 252 | 253 |
| 253 | 254 |
| 254 }} // namespace v8::internal | 255 }} // namespace v8::internal |
| 255 | 256 |
| 256 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ | 257 #endif // V8_ARM_REGEXP_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |