OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 } | 200 } |
201 | 201 |
202 int get_sinteger_from_s_register(int sreg) { | 202 int get_sinteger_from_s_register(int sreg) { |
203 return GetFromVFPRegister<int, 1>(sreg); | 203 return GetFromVFPRegister<int, 1>(sreg); |
204 } | 204 } |
205 | 205 |
206 // Special case of set_register and get_register to access the raw PC value. | 206 // Special case of set_register and get_register to access the raw PC value. |
207 void set_pc(int32_t value); | 207 void set_pc(int32_t value); |
208 int32_t get_pc() const; | 208 int32_t get_pc() const; |
209 | 209 |
| 210 Address get_sp() { |
| 211 return reinterpret_cast<Address>(static_cast<intptr_t>(get_register(sp))); |
| 212 } |
| 213 |
210 // Accessor to the internal simulator stack area. | 214 // Accessor to the internal simulator stack area. |
211 uintptr_t StackLimit() const; | 215 uintptr_t StackLimit() const; |
212 | 216 |
213 // Executes ARM instructions until the PC reaches end_sim_pc. | 217 // Executes ARM instructions until the PC reaches end_sim_pc. |
214 void Execute(); | 218 void Execute(); |
215 | 219 |
216 // Call on program start. | 220 // Call on program start. |
217 static void Initialize(Isolate* isolate); | 221 static void Initialize(Isolate* isolate); |
218 | 222 |
219 // V8 generally calls into generated JS code with 5 parameters and into | 223 // V8 generally calls into generated JS code with 5 parameters and into |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 483 |
480 static inline void UnregisterCTryCatch() { | 484 static inline void UnregisterCTryCatch() { |
481 Simulator::current(Isolate::Current())->PopAddress(); | 485 Simulator::current(Isolate::Current())->PopAddress(); |
482 } | 486 } |
483 }; | 487 }; |
484 | 488 |
485 } } // namespace v8::internal | 489 } } // namespace v8::internal |
486 | 490 |
487 #endif // !defined(USE_SIMULATOR) | 491 #endif // !defined(USE_SIMULATOR) |
488 #endif // V8_ARM_SIMULATOR_ARM_H_ | 492 #endif // V8_ARM_SIMULATOR_ARM_H_ |
OLD | NEW |