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

Unified Diff: test/unittests/compiler/register-allocator-unittest.cc

Issue 738853002: [turbofan]: delay ssa deconstruction in register allocator (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 6 years, 1 month 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-verifier.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/unittests/compiler/register-allocator-unittest.cc
diff --git a/test/unittests/compiler/register-allocator-unittest.cc b/test/unittests/compiler/register-allocator-unittest.cc
index 290c2859b69e2b1bd9ee19b094719f9d06c443c7..d4dd49fa3f712c21d90a9bdbb972abf077c8d292 100644
--- a/test/unittests/compiler/register-allocator-unittest.cc
+++ b/test/unittests/compiler/register-allocator-unittest.cc
@@ -243,8 +243,9 @@ class RegisterAllocatorTest : public TestWithZone {
int Return(VReg vreg) { return Return(Reg(vreg, 0)); }
PhiInstruction* Phi(VReg incoming_vreg) {
- PhiInstruction* phi = new (zone()) PhiInstruction(zone(), NewReg().value_);
- phi->operands().push_back(incoming_vreg.value_);
+ PhiInstruction* phi =
+ new (zone()) PhiInstruction(zone(), NewReg().value_, 10);
+ phi->Extend(zone(), incoming_vreg.value_);
current_block_->AddPhi(phi);
return phi;
}
@@ -255,8 +256,8 @@ class RegisterAllocatorTest : public TestWithZone {
return phi;
}
- static void Extend(PhiInstruction* phi, VReg vreg) {
- phi->operands().push_back(vreg.value_);
+ void Extend(PhiInstruction* phi, VReg vreg) {
+ phi->Extend(zone(), vreg.value_);
}
VReg DefineConstant(int32_t imm = 0) {
« no previous file with comments | « src/compiler/register-allocator-verifier.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698