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

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

Issue 1528983005: [turbofan] Print APIs for live ranges. (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/instruction.cc ('k') | 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 6437cebc485b8421473bf84a55c907365a77ecce..1ea8d0026e18cfcf5f574e5f5e64e89b46697b78 100644
--- a/src/compiler/register-allocator.h
+++ b/src/compiler/register-allocator.h
@@ -135,6 +135,8 @@ class LifetimePosition final {
return this->value_ >= that.value_;
}
+ void Print() const;
+
static inline LifetimePosition Invalid() { return LifetimePosition(); }
static inline LifetimePosition MaxPosition() {
@@ -409,6 +411,8 @@ class LiveRange : public ZoneObject {
void set_weight(float weight) { weight_ = weight; }
LiveRangeGroup* group() const { return group_; }
void set_group(LiveRangeGroup* group) { group_ = group; }
+ void Print(const RegisterConfiguration* config, bool with_children) const;
+ void Print(bool with_children) const;
static const int kInvalidSize = -1;
static const float kInvalidWeight;
@@ -688,6 +692,7 @@ class SpillRange final : public ZoneObject {
ZoneVector<TopLevelLiveRange*>& live_ranges() { return live_ranges_; }
int byte_width() const { return byte_width_; }
RegisterKind kind() const { return kind_; }
+ void Print() const;
private:
LifetimePosition End() const { return end_position_; }
@@ -811,13 +816,6 @@ class RegisterAllocationData final : public ZoneObject {
return preassigned_slot_ranges_;
}
- void Print(const InstructionSequence* instructionSequence);
- void Print(const Instruction* instruction);
- void Print(const LiveRange* range, bool with_children = false);
- void Print(const InstructionOperand& op);
- void Print(const MoveOperands* move);
- void Print(const SpillRange* spill_range);
-
private:
int GetNextLiveRangeId();
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698