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

Unified Diff: src/compiler/instruction.h

Issue 1053123006: Calculate blocks needing a frame and frame (de)construction sites. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Added missing files 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 | « src/compiler/frame-elider.cc ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index 6555b345a175770a4cb5c221233c9b6df413af1f..9b9728224ce35e8a78c8c89481cf230311c5aea6 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -928,6 +928,15 @@ class InstructionBlock final : public ZoneObject {
void set_ao_number(RpoNumber ao_number) { ao_number_ = ao_number; }
+ bool needs_frame() const { return needs_frame_; }
+ void mark_needs_frame() { needs_frame_ = true; }
+
+ bool must_construct_frame() const { return must_construct_frame_; }
+ void mark_must_construct_frame() { must_construct_frame_ = true; }
+
+ bool must_deconstruct_frame() const { return must_deconstruct_frame_; }
+ void mark_must_deconstruct_frame() { must_deconstruct_frame_ = true; }
+
private:
Successors successors_;
Predecessors predecessors_;
@@ -939,6 +948,9 @@ class InstructionBlock final : public ZoneObject {
int32_t code_start_; // start index of arch-specific code.
int32_t code_end_; // end index of arch-specific code.
const bool deferred_; // Block contains deferred code.
+ bool needs_frame_;
+ bool must_construct_frame_;
+ bool must_deconstruct_frame_;
};
typedef ZoneDeque<Constant> ConstantDeque;
« no previous file with comments | « src/compiler/frame-elider.cc ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698