Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: src/arm/simulator-arm.h

Issue 2019003: ldrd/strd Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 // The currently executing Simulator instance. Potentially there can be one 153 // The currently executing Simulator instance. Potentially there can be one
154 // for each native thread. 154 // for each native thread.
155 static Simulator* current(); 155 static Simulator* current();
156 156
157 // Accessors for register state. Reading the pc value adheres to the ARM 157 // Accessors for register state. Reading the pc value adheres to the ARM
158 // architecture specification and is off by a 8 from the currently executing 158 // architecture specification and is off by a 8 from the currently executing
159 // instruction. 159 // instruction.
160 void set_register(int reg, int32_t value); 160 void set_register(int reg, int32_t value);
161 int32_t get_register(int reg) const; 161 int32_t get_register(int reg) const;
162 void set_dw_register(int dreg, const int* dbl);
162 163
163 // Support for VFP. 164 // Support for VFP.
164 void set_s_register(int reg, unsigned int value); 165 void set_s_register(int reg, unsigned int value);
165 unsigned int get_s_register(int reg) const; 166 unsigned int get_s_register(int reg) const;
166 void set_d_register_from_double(int dreg, const double& dbl); 167 void set_d_register_from_double(int dreg, const double& dbl);
167 double get_double_from_d_register(int dreg); 168 double get_double_from_d_register(int dreg);
168 void set_s_register_from_float(int sreg, const float dbl); 169 void set_s_register_from_float(int sreg, const float dbl);
169 float get_float_from_s_register(int sreg); 170 float get_float_from_s_register(int sreg);
170 void set_s_register_from_sinteger(int reg, const int value); 171 void set_s_register_from_sinteger(int reg, const int value);
171 int get_sinteger_from_s_register(int reg); 172 int get_sinteger_from_s_register(int reg);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 246
246 inline uint16_t ReadHU(int32_t addr, Instr* instr); 247 inline uint16_t ReadHU(int32_t addr, Instr* instr);
247 inline int16_t ReadH(int32_t addr, Instr* instr); 248 inline int16_t ReadH(int32_t addr, Instr* instr);
248 // Note: Overloaded on the sign of the value. 249 // Note: Overloaded on the sign of the value.
249 inline void WriteH(int32_t addr, uint16_t value, Instr* instr); 250 inline void WriteH(int32_t addr, uint16_t value, Instr* instr);
250 inline void WriteH(int32_t addr, int16_t value, Instr* instr); 251 inline void WriteH(int32_t addr, int16_t value, Instr* instr);
251 252
252 inline int ReadW(int32_t addr, Instr* instr); 253 inline int ReadW(int32_t addr, Instr* instr);
253 inline void WriteW(int32_t addr, int value, Instr* instr); 254 inline void WriteW(int32_t addr, int value, Instr* instr);
254 255
256 int32_t* ReadDW(int32_t addr);
257 void WriteDW(int32_t addr, int32_t value1, int32_t value2);
258
255 // Executing is handled based on the instruction type. 259 // Executing is handled based on the instruction type.
256 void DecodeType01(Instr* instr); // both type 0 and type 1 rolled into one 260 void DecodeType01(Instr* instr); // both type 0 and type 1 rolled into one
257 void DecodeType2(Instr* instr); 261 void DecodeType2(Instr* instr);
258 void DecodeType3(Instr* instr); 262 void DecodeType3(Instr* instr);
259 void DecodeType4(Instr* instr); 263 void DecodeType4(Instr* instr);
260 void DecodeType5(Instr* instr); 264 void DecodeType5(Instr* instr);
261 void DecodeType6(Instr* instr); 265 void DecodeType6(Instr* instr);
262 void DecodeType7(Instr* instr); 266 void DecodeType7(Instr* instr);
263 void DecodeUnconditional(Instr* instr); 267 void DecodeUnconditional(Instr* instr);
264 268
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 349
346 static inline void UnregisterCTryCatch() { 350 static inline void UnregisterCTryCatch() {
347 assembler::arm::Simulator::current()->PopAddress(); 351 assembler::arm::Simulator::current()->PopAddress();
348 } 352 }
349 }; 353 };
350 354
351 355
352 #endif // defined(__arm__) 356 #endif // defined(__arm__)
353 357
354 #endif // V8_ARM_SIMULATOR_ARM_H_ 358 #endif // V8_ARM_SIMULATOR_ARM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698