OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ |
6 #define V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ | 6 #define V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include "src/arm64/assembler-arm64.h" | 8 #include "src/arm64/assembler-arm64.h" |
9 #include "src/macro-assembler.h" | 9 #include "src/macro-assembler.h" |
10 #include "src/regexp/regexp-macro-assembler.h" | 10 #include "src/regexp/regexp-macro-assembler.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const byte** input_start, | 102 const byte** input_start, |
103 const byte** input_end); | 103 const byte** input_end); |
104 | 104 |
105 private: | 105 private: |
106 // Above the frame pointer - Stored registers and stack passed parameters. | 106 // Above the frame pointer - Stored registers and stack passed parameters. |
107 // Callee-saved registers x19-x29, where x29 is the old frame pointer. | 107 // Callee-saved registers x19-x29, where x29 is the old frame pointer. |
108 static const int kCalleeSavedRegisters = 0; | 108 static const int kCalleeSavedRegisters = 0; |
109 // Return address. | 109 // Return address. |
110 // It is placed above the 11 callee-saved registers. | 110 // It is placed above the 11 callee-saved registers. |
111 static const int kReturnAddress = kCalleeSavedRegisters + 11 * kPointerSize; | 111 static const int kReturnAddress = kCalleeSavedRegisters + 11 * kPointerSize; |
112 static const int kSecondaryReturnAddress = kReturnAddress + kPointerSize; | |
113 // Stack parameter placed by caller. | 112 // Stack parameter placed by caller. |
114 static const int kIsolate = kSecondaryReturnAddress + kPointerSize; | 113 static const int kIsolate = kReturnAddress + kPointerSize; |
115 | 114 |
116 // Below the frame pointer. | 115 // Below the frame pointer. |
117 // Register parameters stored by setup code. | 116 // Register parameters stored by setup code. |
118 static const int kDirectCall = kCalleeSavedRegisters - kPointerSize; | 117 static const int kDirectCall = kCalleeSavedRegisters - kPointerSize; |
119 static const int kStackBase = kDirectCall - kPointerSize; | 118 static const int kStackBase = kDirectCall - kPointerSize; |
120 static const int kOutputSize = kStackBase - kPointerSize; | 119 static const int kOutputSize = kStackBase - kPointerSize; |
121 static const int kInput = kOutputSize - kPointerSize; | 120 static const int kInput = kOutputSize - kPointerSize; |
122 // When adding local variables remember to push space for them in | 121 // When adding local variables remember to push space for them in |
123 // the frame in GetCode. | 122 // the frame in GetCode. |
124 static const int kSuccessCounter = kInput - kPointerSize; | 123 static const int kSuccessCounter = kInput - kPointerSize; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 Label stack_overflow_label_; | 286 Label stack_overflow_label_; |
288 }; | 287 }; |
289 | 288 |
290 #endif // V8_INTERPRETED_REGEXP | 289 #endif // V8_INTERPRETED_REGEXP |
291 | 290 |
292 | 291 |
293 } // namespace internal | 292 } // namespace internal |
294 } // namespace v8 | 293 } // namespace v8 |
295 | 294 |
296 #endif // V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ | 295 #endif // V8_REGEXP_ARM64_REGEXP_MACRO_ASSEMBLER_ARM64_H_ |
OLD | NEW |