OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // use this space to store the register passed parameters. | 136 // use this space to store the register passed parameters. |
137 static const int kInputString = kFrameAlign; | 137 static const int kInputString = kFrameAlign; |
138 // StartIndex is passed as 32 bit int. | 138 // StartIndex is passed as 32 bit int. |
139 static const int kStartIndex = kInputString + kPointerSize; | 139 static const int kStartIndex = kInputString + kPointerSize; |
140 static const int kInputStart = kStartIndex + kPointerSize; | 140 static const int kInputStart = kStartIndex + kPointerSize; |
141 static const int kInputEnd = kInputStart + kPointerSize; | 141 static const int kInputEnd = kInputStart + kPointerSize; |
142 static const int kRegisterOutput = kInputEnd + kPointerSize; | 142 static const int kRegisterOutput = kInputEnd + kPointerSize; |
143 // AtStart is passed as 32 bit int (values 0 or 1). | 143 // AtStart is passed as 32 bit int (values 0 or 1). |
144 static const int kAtStart = kRegisterOutput + kPointerSize; | 144 static const int kAtStart = kRegisterOutput + kPointerSize; |
145 static const int kStackHighEnd = kAtStart + kPointerSize; | 145 static const int kStackHighEnd = kAtStart + kPointerSize; |
| 146 // DirectCall is passed as 32 bit int (values 0 or 1). |
| 147 static const int kDirectCall = kStackHighEnd + kPointerSize; |
146 #else | 148 #else |
147 // In AMD64 ABI Calling Convention, the first six integer parameters | 149 // In AMD64 ABI Calling Convention, the first six integer parameters |
148 // are passed as registers, and caller must allocate space on the stack | 150 // are passed as registers, and caller must allocate space on the stack |
149 // if it wants them stored. We push the parameters after the frame pointer. | 151 // if it wants them stored. We push the parameters after the frame pointer. |
150 static const int kInputString = kFramePointer - kPointerSize; | 152 static const int kInputString = kFramePointer - kPointerSize; |
151 static const int kStartIndex = kInputString - kPointerSize; | 153 static const int kStartIndex = kInputString - kPointerSize; |
152 static const int kInputStart = kStartIndex - kPointerSize; | 154 static const int kInputStart = kStartIndex - kPointerSize; |
153 static const int kInputEnd = kInputStart - kPointerSize; | 155 static const int kInputEnd = kInputStart - kPointerSize; |
154 static const int kRegisterOutput = kInputEnd - kPointerSize; | 156 static const int kRegisterOutput = kInputEnd - kPointerSize; |
155 static const int kAtStart = kRegisterOutput - kPointerSize; | 157 static const int kAtStart = kRegisterOutput - kPointerSize; |
156 static const int kStackHighEnd = kFrameAlign; | 158 static const int kStackHighEnd = kFrameAlign; |
| 159 static const int kDirectCall = kStackHighEnd + kPointerSize; |
157 #endif | 160 #endif |
158 | 161 |
159 #ifdef _WIN64 | 162 #ifdef _WIN64 |
160 // Microsoft calling convention has three callee-saved registers | 163 // Microsoft calling convention has three callee-saved registers |
161 // (that we are using). We push these after the frame pointer. | 164 // (that we are using). We push these after the frame pointer. |
162 static const int kBackup_rsi = kFramePointer - kPointerSize; | 165 static const int kBackup_rsi = kFramePointer - kPointerSize; |
163 static const int kBackup_rdi = kBackup_rsi - kPointerSize; | 166 static const int kBackup_rdi = kBackup_rsi - kPointerSize; |
164 static const int kBackup_rbx = kBackup_rdi - kPointerSize; | 167 static const int kBackup_rbx = kBackup_rdi - kPointerSize; |
165 static const int kLastCalleeSaveRegister = kBackup_rbx; | 168 static const int kLastCalleeSaveRegister = kBackup_rbx; |
166 #else | 169 #else |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 Label exit_label_; | 288 Label exit_label_; |
286 Label check_preempt_label_; | 289 Label check_preempt_label_; |
287 Label stack_overflow_label_; | 290 Label stack_overflow_label_; |
288 }; | 291 }; |
289 | 292 |
290 #endif // V8_NATIVE_REGEXP | 293 #endif // V8_NATIVE_REGEXP |
291 | 294 |
292 }} // namespace v8::internal | 295 }} // namespace v8::internal |
293 | 296 |
294 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ | 297 #endif // V8_X64_REGEXP_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |