| OLD | NEW |
| 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 #include "src/compiler/schedule.h" | 8 #include "src/compiler/schedule.h" |
| 9 #include "src/compiler/state-values-utils.h" | 9 #include "src/compiler/state-values-utils.h" |
| 10 | 10 |
| (...skipping 908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 919 representations_.resize(VirtualRegisterCount(), DefaultRepresentation()); | 919 representations_.resize(VirtualRegisterCount(), DefaultRepresentation()); |
| 920 } | 920 } |
| 921 rep = FilterRepresentation(rep); | 921 rep = FilterRepresentation(rep); |
| 922 DCHECK_IMPLIES(representations_[virtual_register] != rep, | 922 DCHECK_IMPLIES(representations_[virtual_register] != rep, |
| 923 representations_[virtual_register] == DefaultRepresentation()); | 923 representations_[virtual_register] == DefaultRepresentation()); |
| 924 representations_[virtual_register] = rep; | 924 representations_[virtual_register] = rep; |
| 925 representation_mask_ |= 1 << static_cast<int>(rep); | 925 representation_mask_ |= 1 << static_cast<int>(rep); |
| 926 } | 926 } |
| 927 | 927 |
| 928 int InstructionSequence::AddDeoptimizationEntry( | 928 int InstructionSequence::AddDeoptimizationEntry( |
| 929 FrameStateDescriptor* descriptor, DeoptimizeKind kind, | 929 FrameStateDescriptor* descriptor, DeoptimizeReason reason) { |
| 930 DeoptimizeReason reason) { | |
| 931 int deoptimization_id = static_cast<int>(deoptimization_entries_.size()); | 930 int deoptimization_id = static_cast<int>(deoptimization_entries_.size()); |
| 932 deoptimization_entries_.push_back( | 931 deoptimization_entries_.push_back(DeoptimizationEntry(descriptor, reason)); |
| 933 DeoptimizationEntry(descriptor, kind, reason)); | |
| 934 return deoptimization_id; | 932 return deoptimization_id; |
| 935 } | 933 } |
| 936 | 934 |
| 937 DeoptimizationEntry const& InstructionSequence::GetDeoptimizationEntry( | 935 DeoptimizationEntry const& InstructionSequence::GetDeoptimizationEntry( |
| 938 int state_id) { | 936 int state_id) { |
| 939 return deoptimization_entries_[state_id]; | 937 return deoptimization_entries_[state_id]; |
| 940 } | 938 } |
| 941 | 939 |
| 942 | 940 |
| 943 RpoNumber InstructionSequence::InputRpo(Instruction* instr, size_t index) { | 941 RpoNumber InstructionSequence::InputRpo(Instruction* instr, size_t index) { |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1088 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 1086 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
| 1089 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); | 1087 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); |
| 1090 os << printable_block; | 1088 os << printable_block; |
| 1091 } | 1089 } |
| 1092 return os; | 1090 return os; |
| 1093 } | 1091 } |
| 1094 | 1092 |
| 1095 } // namespace compiler | 1093 } // namespace compiler |
| 1096 } // namespace internal | 1094 } // namespace internal |
| 1097 } // namespace v8 | 1095 } // namespace v8 |
| OLD | NEW |