| 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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 int64_t value_; | 144 int64_t value_; |
| 145 }; | 145 }; |
| 146 | 146 |
| 147 | 147 |
| 148 typedef SimRegisterBase SimRegister; // r0-r31 | 148 typedef SimRegisterBase SimRegister; // r0-r31 |
| 149 typedef SimRegisterBase SimFPRegister; // v0-v31 | 149 typedef SimRegisterBase SimFPRegister; // v0-v31 |
| 150 | 150 |
| 151 | 151 |
| 152 class Simulator : public DecoderVisitor { | 152 class Simulator : public DecoderVisitor { |
| 153 public: | 153 public: |
| 154 static void FlushICache(v8::internal::HashMap* i_cache, void* start, |
| 155 size_t size) { |
| 156 USE(i_cache); |
| 157 USE(start); |
| 158 USE(size); |
| 159 } |
| 160 |
| 154 explicit Simulator(Decoder<DispatchingDecoderVisitor>* decoder, | 161 explicit Simulator(Decoder<DispatchingDecoderVisitor>* decoder, |
| 155 Isolate* isolate = NULL, | 162 Isolate* isolate = NULL, |
| 156 FILE* stream = stderr); | 163 FILE* stream = stderr); |
| 157 Simulator(); | 164 Simulator(); |
| 158 ~Simulator(); | 165 ~Simulator(); |
| 159 | 166 |
| 160 // System functions. | 167 // System functions. |
| 161 | 168 |
| 162 static void Initialize(Isolate* isolate); | 169 static void Initialize(Isolate* isolate); |
| 163 | 170 |
| (...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 static void UnregisterCTryCatch() { | 907 static void UnregisterCTryCatch() { |
| 901 Simulator::current(Isolate::Current())->PopAddress(); | 908 Simulator::current(Isolate::Current())->PopAddress(); |
| 902 } | 909 } |
| 903 }; | 910 }; |
| 904 | 911 |
| 905 #endif // !defined(USE_SIMULATOR) | 912 #endif // !defined(USE_SIMULATOR) |
| 906 | 913 |
| 907 } } // namespace v8::internal | 914 } } // namespace v8::internal |
| 908 | 915 |
| 909 #endif // V8_ARM64_SIMULATOR_ARM64_H_ | 916 #endif // V8_ARM64_SIMULATOR_ARM64_H_ |
| OLD | NEW |