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

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

Issue 893913004: [turbofan] push virtual register field down to InstructionOperand (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 unified diff | Download patch
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/bit-vector.h" 5 #include "src/bit-vector.h"
6 #include "src/compiler/instruction.h" 6 #include "src/compiler/instruction.h"
7 #include "src/compiler/register-allocator-verifier.h" 7 #include "src/compiler/register-allocator-verifier.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 22 matching lines...) Expand all
33 constraint.virtual_register_); 33 constraint.virtual_register_);
34 } 34 }
35 } 35 }
36 36
37 37
38 void RegisterAllocatorVerifier::VerifyTemp( 38 void RegisterAllocatorVerifier::VerifyTemp(
39 const OperandConstraint& constraint) { 39 const OperandConstraint& constraint) {
40 CHECK_NE(kSameAsFirst, constraint.type_); 40 CHECK_NE(kSameAsFirst, constraint.type_);
41 CHECK_NE(kImmediate, constraint.type_); 41 CHECK_NE(kImmediate, constraint.type_);
42 CHECK_NE(kConstant, constraint.type_); 42 CHECK_NE(kConstant, constraint.type_);
43 CHECK_EQ(UnallocatedOperand::kInvalidVirtualRegister,
44 constraint.virtual_register_);
45 } 43 }
46 44
47 45
48 void RegisterAllocatorVerifier::VerifyOutput( 46 void RegisterAllocatorVerifier::VerifyOutput(
49 const OperandConstraint& constraint) { 47 const OperandConstraint& constraint) {
50 CHECK_NE(kImmediate, constraint.type_); 48 CHECK_NE(kImmediate, constraint.type_);
51 CHECK_NE(UnallocatedOperand::kInvalidVirtualRegister, 49 CHECK_NE(UnallocatedOperand::kInvalidVirtualRegister,
52 constraint.virtual_register_); 50 constraint.virtual_register_);
53 } 51 }
54 52
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
664 int virtual_register = op_constraints[count].virtual_register_; 662 int virtual_register = op_constraints[count].virtual_register_;
665 current->Define(zone(), instr->OutputAt(i), virtual_register); 663 current->Define(zone(), instr->OutputAt(i), virtual_register);
666 } 664 }
667 } 665 }
668 } 666 }
669 } 667 }
670 668
671 } // namespace compiler 669 } // namespace compiler
672 } // namespace internal 670 } // namespace internal
673 } // namespace v8 671 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/x64/instruction-selector-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698