Index: src/virtual-frame-arm.h |
=================================================================== |
--- src/virtual-frame-arm.h (revision 1604) |
+++ src/virtual-frame-arm.h (working copy) |
@@ -76,10 +76,18 @@ |
return elements_.length() - expression_base_index(); |
} |
- int register_count(Register reg) { |
- return frame_registers_.count(reg); |
+ int register_index(Register reg) { |
+ return register_locations_[reg.code()]; |
} |
+ bool is_used(int reg_code) { |
+ return register_locations_[reg_code] != kIllegalIndex; |
+ } |
+ |
+ bool is_used(Register reg) { |
+ return is_used(reg.code()) != kIllegalIndex; |
+ } |
+ |
// Add extra in-memory elements to the top of the frame to match an actual |
// frame (eg, the frame after an exception handler is pushed). No code is |
// emitted. |
@@ -342,10 +350,6 @@ |
// kIllegalIndex if a register is not on the frame. |
int register_locations_[kNumRegisters]; |
- // The frame has an embedded register file that it uses to track registers |
- // used in the frame. |
- RegisterFile frame_registers_; |
- |
// The index of the first parameter. The receiver lies below the first |
// parameter. |
int param0_index() const { return 1; } |