| 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 explicit Simulator(Decoder<DispatchingDecoderVisitor>* decoder, | 156 explicit Simulator(Decoder<DispatchingDecoderVisitor>* decoder, |
| 157 Isolate* isolate = NULL, | 157 Isolate* isolate = NULL, |
| 158 FILE* stream = stderr); | 158 FILE* stream = stderr); |
| 159 Simulator(); | 159 Simulator(); |
| 160 ~Simulator(); | 160 ~Simulator(); |
| 161 | 161 |
| 162 // System functions. | 162 // System functions. |
| 163 | 163 |
| 164 static void Initialize(Isolate* isolate); | 164 static void Initialize(Isolate* isolate); |
| 165 | 165 |
| 166 static void TearDown(HashMap* i_cache, Redirection* first); |
| 167 |
| 166 static Simulator* current(v8::internal::Isolate* isolate); | 168 static Simulator* current(v8::internal::Isolate* isolate); |
| 167 | 169 |
| 168 class CallArgument; | 170 class CallArgument; |
| 169 | 171 |
| 170 // Call an arbitrary function taking an arbitrary number of arguments. The | 172 // Call an arbitrary function taking an arbitrary number of arguments. The |
| 171 // varargs list must be a set of arguments with type CallArgument, and | 173 // varargs list must be a set of arguments with type CallArgument, and |
| 172 // terminated by CallArgument::End(). | 174 // terminated by CallArgument::End(). |
| 173 void CallVoid(byte* entry, CallArgument* args); | 175 void CallVoid(byte* entry, CallArgument* args); |
| 174 | 176 |
| 175 // Like CallVoid, but expect a return value. | 177 // Like CallVoid, but expect a return value. |
| (...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 899 static void UnregisterCTryCatch() { | 901 static void UnregisterCTryCatch() { |
| 900 Simulator::current(Isolate::Current())->PopAddress(); | 902 Simulator::current(Isolate::Current())->PopAddress(); |
| 901 } | 903 } |
| 902 }; | 904 }; |
| 903 | 905 |
| 904 #endif // !defined(USE_SIMULATOR) | 906 #endif // !defined(USE_SIMULATOR) |
| 905 | 907 |
| 906 } } // namespace v8::internal | 908 } } // namespace v8::internal |
| 907 | 909 |
| 908 #endif // V8_ARM64_SIMULATOR_ARM64_H_ | 910 #endif // V8_ARM64_SIMULATOR_ARM64_H_ |
| OLD | NEW |