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, | |
212 Isolate* isolate) { | 211 Isolate* isolate) { |
213 CallArgument args[] = { | 212 CallArgument args[] = { |
214 CallArgument(input), | 213 CallArgument(input), |
215 CallArgument(start_offset), | 214 CallArgument(start_offset), |
216 CallArgument(input_start), | 215 CallArgument(input_start), |
217 CallArgument(input_end), | 216 CallArgument(input_end), |
218 CallArgument(output), | 217 CallArgument(output), |
219 CallArgument(output_size), | 218 CallArgument(output_size), |
220 CallArgument(stack_base), | 219 CallArgument(stack_base), |
221 CallArgument(direct_call), | 220 CallArgument(direct_call), |
222 CallArgument(return_address), | |
223 CallArgument(isolate), | 221 CallArgument(isolate), |
224 CallArgument::End() | 222 CallArgument::End() |
225 }; | 223 }; |
226 return CallInt64(entry, args); | 224 return CallInt64(entry, args); |
227 } | 225 } |
228 | 226 |
229 | 227 |
230 void Simulator::CheckPCSComplianceAndRun() { | 228 void Simulator::CheckPCSComplianceAndRun() { |
231 // Adjust JS-based stack limit to C-based stack limit. | 229 // Adjust JS-based stack limit to C-based stack limit. |
232 isolate_->stack_guard()->AdjustStackLimitForSimulator(); | 230 isolate_->stack_guard()->AdjustStackLimitForSimulator(); |
(...skipping 3954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4187 processor->prev_ = nullptr; | 4185 processor->prev_ = nullptr; |
4188 processor->next_ = nullptr; | 4186 processor->next_ = nullptr; |
4189 } | 4187 } |
4190 | 4188 |
4191 #endif // USE_SIMULATOR | 4189 #endif // USE_SIMULATOR |
4192 | 4190 |
4193 } // namespace internal | 4191 } // namespace internal |
4194 } // namespace v8 | 4192 } // namespace v8 |
4195 | 4193 |
4196 #endif // V8_TARGET_ARCH_ARM64 | 4194 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |