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

Unified Diff: src/virtual-frame-arm.h

Issue 42565: Remove register counts from VirtualFrame, use register indices instead. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/virtual-frame.cc ('k') | src/virtual-frame-ia32.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « src/virtual-frame.cc ('k') | src/virtual-frame-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698