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

Unified Diff: test/cctest/compiler/test-instruction.cc

Issue 907873002: [turbofan] make zone allocation of InstructionOperand explicit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/register-allocator.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/compiler/test-instruction.cc
diff --git a/test/cctest/compiler/test-instruction.cc b/test/cctest/compiler/test-instruction.cc
index 0e8056e53e63159d636f60f095d0e1ce399339b4..56f95541f77734a7adf1357ee8f7f5137d8c60c8 100644
--- a/test/cctest/compiler/test-instruction.cc
+++ b/test/cctest/compiler/test-instruction.cc
@@ -90,7 +90,7 @@ class InstructionTester : public HandleAndZoneScope {
}
UnallocatedOperand* NewUnallocated(int vreg) {
- return new (zone()) UnallocatedOperand(UnallocatedOperand::ANY, vreg);
+ return UnallocatedOperand(UnallocatedOperand::ANY, vreg).Copy(zone());
}
InstructionBlock* BlockAt(BasicBlock* block) {
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698