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

Unified Diff: src/compiler/register-allocator.h

Issue 1318893002: [turbofan] LiveRange splinter merging optimizations. (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 | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.h
diff --git a/src/compiler/register-allocator.h b/src/compiler/register-allocator.h
index ff4ddd0c741403528424b3afc66e259f6ff4acae..5c8468cd8fad2d6d08d5c2fb80bd989a90df89e7 100644
--- a/src/compiler/register-allocator.h
+++ b/src/compiler/register-allocator.h
@@ -545,6 +545,8 @@ class TopLevelLiveRange final : public LiveRange {
SpillAtDefinitionList* spills_at_definition() const {
return spills_at_definition_;
}
+ void set_last_child(LiveRange* range) { last_child_ = range; }
+ LiveRange* last_child() const { return last_child_; }
private:
typedef BitField<bool, 1, 1> HasSlotUseField;
@@ -552,8 +554,6 @@ class TopLevelLiveRange final : public LiveRange {
typedef BitField<bool, 3, 1> IsNonLoopPhiField;
typedef BitField<SpillType, 4, 2> SpillTypeField;
- LiveRange* GetLastChild();
-
int vreg_;
int last_child_id_;
TopLevelLiveRange* splintered_from_;
@@ -567,6 +567,8 @@ class TopLevelLiveRange final : public LiveRange {
// just for spill in a single deferred block.
bool spilled_in_deferred_blocks_;
int spill_start_index_;
+ LiveRange* last_child_;
+ LiveRange* last_insertion_point_;
DISALLOW_COPY_AND_ASSIGN(TopLevelLiveRange);
};
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698