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 #ifndef V8_ARM64_SIMULATOR_ARM64_H_ | 5 #ifndef V8_ARM64_SIMULATOR_ARM64_H_ |
6 #define V8_ARM64_SIMULATOR_ARM64_H_ | 6 #define V8_ARM64_SIMULATOR_ARM64_H_ |
7 | 7 |
8 #include <stdarg.h> | 8 #include <stdarg.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 | 181 |
182 // Like CallVoid, but expect a return value. | 182 // Like CallVoid, but expect a return value. |
183 int64_t CallInt64(byte* entry, CallArgument* args); | 183 int64_t CallInt64(byte* entry, CallArgument* args); |
184 double CallDouble(byte* entry, CallArgument* args); | 184 double CallDouble(byte* entry, CallArgument* args); |
185 | 185 |
186 // V8 calls into generated JS code with 5 parameters and into | 186 // V8 calls into generated JS code with 5 parameters and into |
187 // generated RegExp code with 10 parameters. These are convenience functions, | 187 // generated RegExp code with 10 parameters. These are convenience functions, |
188 // which set up the simulator state and grab the result on return. | 188 // which set up the simulator state and grab the result on return. |
189 int64_t CallJS(byte* entry, | 189 int64_t CallJS(byte* entry, |
190 Object* new_target, | 190 Object* new_target, |
191 JSFunction* func, | 191 Object* target, |
192 Object* revc, | 192 Object* revc, |
193 int64_t argc, | 193 int64_t argc, |
194 Object*** argv); | 194 Object*** argv); |
195 int64_t CallRegExp(byte* entry, | 195 int64_t CallRegExp(byte* entry, |
196 String* input, | 196 String* input, |
197 int64_t start_offset, | 197 int64_t start_offset, |
198 const byte* input_start, | 198 const byte* input_start, |
199 const byte* input_end, | 199 const byte* input_end, |
200 int* output, | 200 int* output, |
201 int64_t output_size, | 201 int64_t output_size, |
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
907 static void UnregisterCTryCatch() { | 907 static void UnregisterCTryCatch() { |
908 Simulator::current(Isolate::Current())->PopAddress(); | 908 Simulator::current(Isolate::Current())->PopAddress(); |
909 } | 909 } |
910 }; | 910 }; |
911 | 911 |
912 #endif // !defined(USE_SIMULATOR) | 912 #endif // !defined(USE_SIMULATOR) |
913 | 913 |
914 } } // namespace v8::internal | 914 } } // namespace v8::internal |
915 | 915 |
916 #endif // V8_ARM64_SIMULATOR_ARM64_H_ | 916 #endif // V8_ARM64_SIMULATOR_ARM64_H_ |
OLD | NEW |