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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 | 172 |
173 double Simulator::CallDouble(byte* entry, CallArgument* args) { | 173 double Simulator::CallDouble(byte* entry, CallArgument* args) { |
174 CallVoid(entry, args); | 174 CallVoid(entry, args); |
175 return dreg(0); | 175 return dreg(0); |
176 } | 176 } |
177 | 177 |
178 | 178 |
179 int64_t Simulator::CallJS(byte* entry, | 179 int64_t Simulator::CallJS(byte* entry, |
180 Object* new_target, | 180 Object* new_target, |
181 JSFunction* func, | 181 Object* target, |
182 Object* revc, | 182 Object* revc, |
183 int64_t argc, | 183 int64_t argc, |
184 Object*** argv) { | 184 Object*** argv) { |
185 CallArgument args[] = { | 185 CallArgument args[] = { |
186 CallArgument(new_target), | 186 CallArgument(new_target), |
187 CallArgument(func), | 187 CallArgument(target), |
188 CallArgument(revc), | 188 CallArgument(revc), |
189 CallArgument(argc), | 189 CallArgument(argc), |
190 CallArgument(argv), | 190 CallArgument(argv), |
191 CallArgument::End() | 191 CallArgument::End() |
192 }; | 192 }; |
193 return CallInt64(entry, args); | 193 return CallInt64(entry, args); |
194 } | 194 } |
195 | 195 |
| 196 |
196 int64_t Simulator::CallRegExp(byte* entry, | 197 int64_t Simulator::CallRegExp(byte* entry, |
197 String* input, | 198 String* input, |
198 int64_t start_offset, | 199 int64_t start_offset, |
199 const byte* input_start, | 200 const byte* input_start, |
200 const byte* input_end, | 201 const byte* input_end, |
201 int* output, | 202 int* output, |
202 int64_t output_size, | 203 int64_t output_size, |
203 Address stack_base, | 204 Address stack_base, |
204 int64_t direct_call, | 205 int64_t direct_call, |
205 void* return_address, | 206 void* return_address, |
(...skipping 3631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3837 delete[] format; | 3838 delete[] format; |
3838 } | 3839 } |
3839 | 3840 |
3840 | 3841 |
3841 #endif // USE_SIMULATOR | 3842 #endif // USE_SIMULATOR |
3842 | 3843 |
3843 } // namespace internal | 3844 } // namespace internal |
3844 } // namespace v8 | 3845 } // namespace v8 |
3845 | 3846 |
3846 #endif // V8_TARGET_ARCH_ARM64 | 3847 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |