| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 uint8_t value_[kSizeInBytes]; | 187 uint8_t value_[kSizeInBytes]; |
| 188 }; | 188 }; |
| 189 typedef SimRegisterBase<kXRegSizeInBytes> SimRegister; // r0-r31 | 189 typedef SimRegisterBase<kXRegSizeInBytes> SimRegister; // r0-r31 |
| 190 typedef SimRegisterBase<kDRegSizeInBytes> SimFPRegister; // v0-v31 | 190 typedef SimRegisterBase<kDRegSizeInBytes> SimFPRegister; // v0-v31 |
| 191 | 191 |
| 192 | 192 |
| 193 class Simulator : public DecoderVisitor { | 193 class Simulator : public DecoderVisitor { |
| 194 public: | 194 public: |
| 195 explicit Simulator(Decoder* decoder, | 195 explicit Simulator(Decoder* decoder, |
| 196 Isolate* isolate = NULL, | 196 Isolate* isolate = NULL, |
| 197 FILE* stream = stdout); | 197 FILE* stream = stderr); |
| 198 ~Simulator(); | 198 ~Simulator(); |
| 199 | 199 |
| 200 // System functions. | 200 // System functions. |
| 201 | 201 |
| 202 static void Initialize(Isolate* isolate); | 202 static void Initialize(Isolate* isolate); |
| 203 | 203 |
| 204 static Simulator* current(v8::internal::Isolate* isolate); | 204 static Simulator* current(v8::internal::Isolate* isolate); |
| 205 | 205 |
| 206 // Call an arbitrary function taking an arbitrary number of arguments. The | 206 // Call an arbitrary function taking an arbitrary number of arguments. The |
| 207 // varargs list must be a set of arguments with type CallArgument, and | 207 // varargs list must be a set of arguments with type CallArgument, and |
| (...skipping 642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 850 static inline void UnregisterCTryCatch() { | 850 static inline void UnregisterCTryCatch() { |
| 851 Simulator::current(Isolate::Current())->PopAddress(); | 851 Simulator::current(Isolate::Current())->PopAddress(); |
| 852 } | 852 } |
| 853 }; | 853 }; |
| 854 | 854 |
| 855 #endif // !defined(USE_SIMULATOR) | 855 #endif // !defined(USE_SIMULATOR) |
| 856 | 856 |
| 857 } } // namespace v8::internal | 857 } } // namespace v8::internal |
| 858 | 858 |
| 859 #endif // V8_A64_SIMULATOR_A64_H_ | 859 #endif // V8_A64_SIMULATOR_A64_H_ |
| OLD | NEW |