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

Unified Diff: src/crankshaft/lithium.h

Issue 1702593002: More simplification and unification of frame handling (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm64 Created 4 years, 10 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/crankshaft/ia32/lithium-ia32.cc ('k') | src/crankshaft/lithium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/crankshaft/lithium.h
diff --git a/src/crankshaft/lithium.h b/src/crankshaft/lithium.h
index 10e980e9836006e67a8d18e88cece08a9ddaf34d..5cfc0c358a064adae71f6fc87d702e48b887b4be 100644
--- a/src/crankshaft/lithium.h
+++ b/src/crankshaft/lithium.h
@@ -638,7 +638,13 @@ class LChunk : public ZoneObject {
int ParameterAt(int index);
int GetParameterStackSlot(int index) const;
- int spill_slot_count() const { return spill_slot_count_; }
+ bool HasAllocatedStackSlots() const {
+ return current_frame_slots_ != base_frame_slots_;
+ }
+ int GetSpillSlotCount() const {
+ return current_frame_slots_ - base_frame_slots_;
+ }
+ int GetTotalFrameSlotCount() const { return current_frame_slots_; }
CompilationInfo* info() const { return info_; }
HGraph* graph() const { return graph_; }
Isolate* isolate() const { return graph_->isolate(); }
@@ -687,7 +693,8 @@ class LChunk : public ZoneObject {
protected:
LChunk(CompilationInfo* info, HGraph* graph);
- int spill_slot_count_;
+ int base_frame_slots_;
+ int current_frame_slots_;
private:
void CommitDependencies(Handle<Code> code) const;
@@ -757,8 +764,6 @@ class LChunkBuilderBase BASE_EMBEDDED {
};
-int StackSlotOffset(int index);
-
enum NumberUntagDMode {
NUMBER_CANDIDATE_IS_SMI,
NUMBER_CANDIDATE_IS_ANY_TAGGED
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.cc ('k') | src/crankshaft/lithium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698