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 #include <stdlib.h> | 5 #include <stdlib.h> |
6 #include <cmath> | 6 #include <cmath> |
7 #include <cstdarg> | 7 #include <cstdarg> |
8 | 8 |
9 #if V8_TARGET_ARCH_ARM64 | 9 #if V8_TARGET_ARCH_ARM64 |
10 | 10 |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 | 201 |
202 int64_t Simulator::CallRegExp(byte* entry, | 202 int64_t Simulator::CallRegExp(byte* entry, |
203 String* input, | 203 String* input, |
204 int64_t start_offset, | 204 int64_t start_offset, |
205 const byte* input_start, | 205 const byte* input_start, |
206 const byte* input_end, | 206 const byte* input_end, |
207 int* output, | 207 int* output, |
208 int64_t output_size, | 208 int64_t output_size, |
209 Address stack_base, | 209 Address stack_base, |
210 int64_t direct_call, | 210 int64_t direct_call, |
| 211 void* return_address, |
211 Isolate* isolate) { | 212 Isolate* isolate) { |
212 CallArgument args[] = { | 213 CallArgument args[] = { |
213 CallArgument(input), | 214 CallArgument(input), |
214 CallArgument(start_offset), | 215 CallArgument(start_offset), |
215 CallArgument(input_start), | 216 CallArgument(input_start), |
216 CallArgument(input_end), | 217 CallArgument(input_end), |
217 CallArgument(output), | 218 CallArgument(output), |
218 CallArgument(output_size), | 219 CallArgument(output_size), |
219 CallArgument(stack_base), | 220 CallArgument(stack_base), |
220 CallArgument(direct_call), | 221 CallArgument(direct_call), |
| 222 CallArgument(return_address), |
221 CallArgument(isolate), | 223 CallArgument(isolate), |
222 CallArgument::End() | 224 CallArgument::End() |
223 }; | 225 }; |
224 return CallInt64(entry, args); | 226 return CallInt64(entry, args); |
225 } | 227 } |
226 | 228 |
227 | 229 |
228 void Simulator::CheckPCSComplianceAndRun() { | 230 void Simulator::CheckPCSComplianceAndRun() { |
229 // Adjust JS-based stack limit to C-based stack limit. | 231 // Adjust JS-based stack limit to C-based stack limit. |
230 isolate_->stack_guard()->AdjustStackLimitForSimulator(); | 232 isolate_->stack_guard()->AdjustStackLimitForSimulator(); |
(...skipping 3954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4185 processor->prev_ = nullptr; | 4187 processor->prev_ = nullptr; |
4186 processor->next_ = nullptr; | 4188 processor->next_ = nullptr; |
4187 } | 4189 } |
4188 | 4190 |
4189 #endif // USE_SIMULATOR | 4191 #endif // USE_SIMULATOR |
4190 | 4192 |
4191 } // namespace internal | 4193 } // namespace internal |
4192 } // namespace v8 | 4194 } // namespace v8 |
4193 | 4195 |
4194 #endif // V8_TARGET_ARCH_ARM64 | 4196 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |