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

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

Issue 1050803002: [turbofan] cleanup InstructionOperand a little (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase 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/ppc/code-generator-ppc.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 d5bd0e7dc8caa3e59294124044ea4bc47c01785d..5160b89aa582c67ce82dde8b4208dda085e3952c 100644
--- a/src/compiler/register-allocator.h
+++ b/src/compiler/register-allocator.h
@@ -215,15 +215,15 @@ class InstructionOperandCache FINAL : public ZoneObject {
public:
InstructionOperandCache();
- InstructionOperand* RegisterOperand(int index) {
+ RegisterOperand* GetRegisterOperand(int index) {
DCHECK(index >= 0 &&
index < static_cast<int>(arraysize(general_register_operands_)));
- return &general_register_operands_[index];
+ return RegisterOperand::cast(&general_register_operands_[index]);
}
- InstructionOperand* DoubleRegisterOperand(int index) {
+ DoubleRegisterOperand* GetDoubleRegisterOperand(int index) {
DCHECK(index >= 0 &&
index < static_cast<int>(arraysize(double_register_operands_)));
- return &double_register_operands_[index];
+ return DoubleRegisterOperand::cast(&double_register_operands_[index]);
}
private:
@@ -345,7 +345,7 @@ class LiveRange FINAL : public ZoneObject {
InstructionOperand* operand);
void SetSpillOperand(InstructionOperand* operand);
void SetSpillRange(SpillRange* spill_range);
- void CommitSpillOperand(InstructionOperand* operand);
+ void CommitSpillOperand(AllocatedOperand* operand);
void CommitSpillsAtDefinition(InstructionSequence* sequence,
InstructionOperand* operand,
bool might_be_duplicated);
@@ -423,7 +423,7 @@ class SpillRange FINAL : public ZoneObject {
RegisterKind Kind() const { return live_ranges_[0]->Kind(); }
bool IsEmpty() const { return live_ranges_.empty(); }
bool TryMerge(SpillRange* other);
- void SetOperand(InstructionOperand* op);
+ void SetOperand(AllocatedOperand* op);
private:
LifetimePosition End() const { return end_position_; }
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698