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

Unified Diff: src/compiler/frame.h

Issue 1087793002: [turbofan] add MachineType to AllocatedOperand (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: no flag Created 5 years, 8 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 | « no previous file | src/compiler/gap-resolver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/frame.h
diff --git a/src/compiler/frame.h b/src/compiler/frame.h
index a5dd11657ba4161fa7e27f34f241092083a8b378..2850a8c1a152e74f287bbf60129bf71e2109a9b5 100644
--- a/src/compiler/frame.h
+++ b/src/compiler/frame.h
@@ -20,13 +20,11 @@ class Frame : public ZoneObject {
Frame()
: register_save_area_size_(0),
spill_slot_count_(0),
- double_spill_slot_count_(0),
osr_stack_slot_count_(0),
allocated_registers_(NULL),
allocated_double_registers_(NULL) {}
inline int GetSpillSlotCount() { return spill_slot_count_; }
- inline int GetDoubleSpillSlotCount() { return double_spill_slot_count_; }
void SetAllocatedRegisters(BitVector* regs) {
DCHECK(allocated_registers_ == NULL);
@@ -57,15 +55,13 @@ class Frame : public ZoneObject {
int GetOsrStackSlotCount() { return osr_stack_slot_count_; }
- int AllocateSpillSlot(bool is_double) {
- // If 32-bit, skip one if the new slot is a double.
- if (is_double) {
- if (kDoubleSize > kPointerSize) {
- DCHECK(kDoubleSize == kPointerSize * 2);
- spill_slot_count_++;
- spill_slot_count_ |= 1;
- }
- double_spill_slot_count_++;
+ int AllocateSpillSlot(int width) {
+ DCHECK(width == 4 || width == 8);
+ // Skip one slot if necessary.
+ if (width > kPointerSize) {
+ DCHECK(width == kPointerSize * 2);
+ spill_slot_count_++;
+ spill_slot_count_ |= 1;
}
return spill_slot_count_++;
}
@@ -78,7 +74,6 @@ class Frame : public ZoneObject {
private:
int register_save_area_size_;
int spill_slot_count_;
- int double_spill_slot_count_;
int osr_stack_slot_count_;
BitVector* allocated_registers_;
BitVector* allocated_double_registers_;
« no previous file with comments | « no previous file | src/compiler/gap-resolver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698