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

Side by Side Diff: src/compiler/instruction.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/instruction.h ('k') | src/compiler/instruction-selector-impl.h » ('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/compiler/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 case InstructionOperand::IMMEDIATE: 43 case InstructionOperand::IMMEDIATE:
44 return os << "[immediate:" << op.index() << "]"; 44 return os << "[immediate:" << op.index() << "]";
45 case InstructionOperand::STACK_SLOT: 45 case InstructionOperand::STACK_SLOT:
46 return os << "[stack:" << op.index() << "]"; 46 return os << "[stack:" << op.index() << "]";
47 case InstructionOperand::DOUBLE_STACK_SLOT: 47 case InstructionOperand::DOUBLE_STACK_SLOT:
48 return os << "[double_stack:" << op.index() << "]"; 48 return os << "[double_stack:" << op.index() << "]";
49 case InstructionOperand::REGISTER: 49 case InstructionOperand::REGISTER:
50 return os << "[" << conf->general_register_name(op.index()) << "|R]"; 50 return os << "[" << conf->general_register_name(op.index()) << "|R]";
51 case InstructionOperand::DOUBLE_REGISTER: 51 case InstructionOperand::DOUBLE_REGISTER:
52 return os << "[" << conf->double_register_name(op.index()) << "|R]"; 52 return os << "[" << conf->double_register_name(op.index()) << "|R]";
53 case InstructionOperand::INVALID:
54 return os << "(x)";
53 } 55 }
54 UNREACHABLE(); 56 UNREACHABLE();
55 return os; 57 return os;
56 } 58 }
57 59
58 60
59 template <InstructionOperand::Kind kOperandKind, int kNumCachedOperands> 61 template <InstructionOperand::Kind kOperandKind, int kNumCachedOperands>
60 SubKindOperand<kOperandKind, kNumCachedOperands>* 62 SubKindOperand<kOperandKind, kNumCachedOperands>*
61 SubKindOperand<kOperandKind, kNumCachedOperands>::cache = NULL; 63 SubKindOperand<kOperandKind, kNumCachedOperands>::cache = NULL;
62 64
(...skipping 671 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 os << " B" << succ_block->id(); 736 os << " B" << succ_block->id();
735 } 737 }
736 os << "\n"; 738 os << "\n";
737 } 739 }
738 return os; 740 return os;
739 } 741 }
740 742
741 } // namespace compiler 743 } // namespace compiler
742 } // namespace internal 744 } // namespace internal
743 } // namespace v8 745 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector-impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698