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

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

Issue 1536523003: [turbofan] removed some dead code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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/register-allocator.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/register-allocator.cc
diff --git a/src/compiler/register-allocator.cc b/src/compiler/register-allocator.cc
index 05bc8ba795c1b46fd59b35f1463b5b999fbb12c0..d06ed0243ee25e9f5cda8801190f3d6f2634e096 100644
--- a/src/compiler/register-allocator.cc
+++ b/src/compiler/register-allocator.cc
@@ -435,9 +435,6 @@ LiveRange* LiveRange::SplitAt(LifetimePosition position, Zone* zone) {
child->top_level_ = TopLevel();
child->next_ = next_;
next_ = child;
- if (child->next() == nullptr) {
- TopLevel()->set_last_child(child);
- }
return child;
}
@@ -534,15 +531,6 @@ UsePosition* LiveRange::DetachAt(LifetimePosition position, LiveRange* result,
}
-void LiveRange::AppendAsChild(TopLevelLiveRange* other) {
- next_ = other;
-
- other->UpdateParentForAllChildren(TopLevel());
- TopLevel()->UpdateSpillRangePostMerge(other);
- TopLevel()->set_last_child(other->last_child());
-}
-
-
void LiveRange::UpdateParentForAllChildren(TopLevelLiveRange* new_top_level) {
LiveRange* child = this;
for (; child != nullptr; child = child->next()) {
@@ -683,7 +671,6 @@ TopLevelLiveRange::TopLevelLiveRange(int vreg, MachineRepresentation rep)
spill_move_insertion_locations_(nullptr),
spilled_in_deferred_blocks_(false),
spill_start_index_(kMaxInt),
- last_child_(this),
last_pos_(nullptr),
splinter_(nullptr),
has_preassigned_slot_(false) {
« no previous file with comments | « src/compiler/register-allocator.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698