| 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 } | 170 } |
| 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 byte* function_entry, | 180 Object* new_target, |
| 181 JSFunction* func, | 181 JSFunction* func, |
| 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(function_entry), | 186 CallArgument(new_target), |
| 187 CallArgument(func), | 187 CallArgument(func), |
| 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 int64_t Simulator::CallRegExp(byte* entry, | 196 int64_t Simulator::CallRegExp(byte* entry, |
| (...skipping 3640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3837 delete[] format; | 3837 delete[] format; |
| 3838 } | 3838 } |
| 3839 | 3839 |
| 3840 | 3840 |
| 3841 #endif // USE_SIMULATOR | 3841 #endif // USE_SIMULATOR |
| 3842 | 3842 |
| 3843 } // namespace internal | 3843 } // namespace internal |
| 3844 } // namespace v8 | 3844 } // namespace v8 |
| 3845 | 3845 |
| 3846 #endif // V8_TARGET_ARCH_ARM64 | 3846 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |