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

Unified Diff: src/compiler/instruction.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 | « no previous file | 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 f15a0ecfaab11f1a5a8c426b03af571dcbf7d0d2..594e6de5044c0de3c8190cd5510eeca2a7e61048 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -94,6 +94,9 @@ class InstructionOperand {
return this->GetCanonicalizedValue() < that.GetCanonicalizedValue();
}
+ void Print(const RegisterConfiguration* config) const;
+ void Print() const;
+
protected:
explicit InstructionOperand(Kind kind) : value_(KindField::encode(kind)) {}
@@ -588,6 +591,9 @@ class MoveOperands final : public ZoneObject {
return source_.IsInvalid();
}
+ void Print(const RegisterConfiguration* config) const;
+ void Print() const;
+
private:
InstructionOperand source_;
InstructionOperand destination_;
@@ -791,6 +797,9 @@ class Instruction final {
ParallelMove* const* parallel_moves() const { return &parallel_moves_[0]; }
ParallelMove** parallel_moves() { return &parallel_moves_[0]; }
+ void Print(const RegisterConfiguration* config) const;
+ void Print() const;
+
private:
explicit Instruction(InstructionCode opcode);
@@ -1246,6 +1255,8 @@ class InstructionSequence final : public ZoneObject {
}
return false;
}
+ void Print(const RegisterConfiguration* config) const;
+ void Print() const;
private:
friend std::ostream& operator<<(std::ostream& os,
« no previous file with comments | « no previous file | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698