Chromium Code Reviews| Index: runtime/vm/simulator_mips.h |
| =================================================================== |
| --- runtime/vm/simulator_mips.h (revision 19704) |
| +++ runtime/vm/simulator_mips.h (working copy) |
| @@ -35,6 +35,12 @@ |
| void set_register(Register reg, int32_t value); |
| int32_t get_register(Register reg) const; |
| + // Accessors for hi, lo registers |
|
regis
2013/03/08 21:09:03
period
|
| + void set_hi_register(int32_t value) { hi_reg_ = value; } |
| + void set_lo_register(int32_t value) { lo_reg_ = value; } |
| + int32_t get_hi_register() const { return hi_reg_; } |
| + int32_t get_lo_register() const { return lo_reg_; } |
| + |
| // Accessor to the internal simulator stack top. |
| uword StackTop() const; |
| @@ -57,6 +63,10 @@ |
| // C code. |
| static const uword kEndSimulatingPC = -1; |
| + // special registers for the results of div, divu. |
|
regis
2013/03/08 21:09:03
// Special ...
|
| + int32_t hi_reg_; |
| + int32_t lo_reg_; |
| + |
| int32_t registers_[kNumberOfCpuRegisters]; |
| uword pc_; |
| @@ -70,6 +80,7 @@ |
| void Format(Instr* instr, const char* format); |
| void DecodeSpecial(Instr* instr); |
| + void DecodeSpecial2(Instr* instr); |
| void InstructionDecode(Instr* instr); |
| void Execute(); |