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

Unified Diff: src/compiler/frame.h

Issue 1263033004: [turbofan] Various fixes to allow unboxed doubles as arguments in registers and on the stack. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 4 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/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/ia32/code-generator-ia32.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 2850a8c1a152e74f287bbf60129bf71e2109a9b5..f901b1e2b3402bc662023b1618cefa4702cc7cc5 100644
--- a/src/compiler/frame.h
+++ b/src/compiler/frame.h
@@ -22,7 +22,8 @@ class Frame : public ZoneObject {
spill_slot_count_(0),
osr_stack_slot_count_(0),
allocated_registers_(NULL),
- allocated_double_registers_(NULL) {}
+ allocated_double_registers_(NULL),
+ pc_on_stack_(true) {}
inline int GetSpillSlotCount() { return spill_slot_count_; }
@@ -71,12 +72,17 @@ class Frame : public ZoneObject {
spill_slot_count_ = static_cast<int>(slot_count);
}
+ void SetPCOnStack(bool val) { pc_on_stack_ = val; }
+
+ int PCOnStackSize() { return pc_on_stack_ ? kRegisterSize : 0; }
+
private:
int register_save_area_size_;
int spill_slot_count_;
int osr_stack_slot_count_;
BitVector* allocated_registers_;
BitVector* allocated_double_registers_;
+ bool pc_on_stack_;
DISALLOW_COPY_AND_ASSIGN(Frame);
};
« no previous file with comments | « src/compiler/arm64/code-generator-arm64.cc ('k') | src/compiler/ia32/code-generator-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698