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

Side by Side Diff: src/compiler/register-allocator-verifier.h

Issue 2086653003: [Turbofan] Add the concept of aliasing to RegisterConfiguration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_REGISTER_ALLOCATOR_VERIFIER_H_ 5 #ifndef V8_REGISTER_ALLOCATOR_VERIFIER_H_
6 #define V8_REGISTER_ALLOCATOR_VERIFIER_H_ 6 #define V8_REGISTER_ALLOCATOR_VERIFIER_H_
7 7
8 #include "src/zone-containers.h" 8 #include "src/zone-containers.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const InstructionBlock* origin() const { return origin_; } 82 const InstructionBlock* origin() const { return origin_; }
83 InstructionOperand operand() const { return operand_; } 83 InstructionOperand operand() const { return operand_; }
84 84
85 private: 85 private:
86 const InstructionBlock* const origin_; 86 const InstructionBlock* const origin_;
87 InstructionOperand operand_; 87 InstructionOperand operand_;
88 88
89 DISALLOW_COPY_AND_ASSIGN(PendingAssessment); 89 DISALLOW_COPY_AND_ASSIGN(PendingAssessment);
90 }; 90 };
91 91
92 // FinalAssessmens are associated to operands that we know to be a certain 92 // FinalAssessments are associated to operands that we know to be a certain
93 // virtual register. 93 // virtual register.
94 class FinalAssessment final : public Assessment { 94 class FinalAssessment final : public Assessment {
95 public: 95 public:
96 explicit FinalAssessment(int virtual_register, 96 explicit FinalAssessment(int virtual_register,
97 const PendingAssessment* original_pending = nullptr) 97 const PendingAssessment* original_pending = nullptr)
98 : Assessment(Final), 98 : Assessment(Final),
99 virtual_register_(virtual_register), 99 virtual_register_(virtual_register),
100 original_pending_assessment_(original_pending) {} 100 original_pending_assessment_(original_pending) {}
101 101
102 int virtual_register() const { return virtual_register_; } 102 int virtual_register() const { return virtual_register_; }
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 ZoneMap<RpoNumber, DelayedAssessments*> outstanding_assessments_; 257 ZoneMap<RpoNumber, DelayedAssessments*> outstanding_assessments_;
258 258
259 DISALLOW_COPY_AND_ASSIGN(RegisterAllocatorVerifier); 259 DISALLOW_COPY_AND_ASSIGN(RegisterAllocatorVerifier);
260 }; 260 };
261 261
262 } // namespace compiler 262 } // namespace compiler
263 } // namespace internal 263 } // namespace internal
264 } // namespace v8 264 } // namespace v8
265 265
266 #endif 266 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698