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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 SourcePosition* result) const { | 650 SourcePosition* result) const { |
651 auto it = source_positions_.find(instr); | 651 auto it = source_positions_.find(instr); |
652 if (it == source_positions_.end()) return false; | 652 if (it == source_positions_.end()) return false; |
653 *result = it->second; | 653 *result = it->second; |
654 return true; | 654 return true; |
655 } | 655 } |
656 | 656 |
657 | 657 |
658 void InstructionSequence::SetSourcePosition(const Instruction* instr, | 658 void InstructionSequence::SetSourcePosition(const Instruction* instr, |
659 SourcePosition value) { | 659 SourcePosition value) { |
660 DCHECK(!value.IsInvalid()); | |
661 DCHECK(!value.IsUnknown()); | |
662 source_positions_.insert(std::make_pair(instr, value)); | 660 source_positions_.insert(std::make_pair(instr, value)); |
663 } | 661 } |
664 | 662 |
665 | 663 |
666 FrameStateDescriptor::FrameStateDescriptor( | 664 FrameStateDescriptor::FrameStateDescriptor( |
667 Zone* zone, const FrameStateCallInfo& state_info, size_t parameters_count, | 665 Zone* zone, const FrameStateCallInfo& state_info, size_t parameters_count, |
668 size_t locals_count, size_t stack_count, FrameStateDescriptor* outer_state) | 666 size_t locals_count, size_t stack_count, FrameStateDescriptor* outer_state) |
669 : type_(state_info.type()), | 667 : type_(state_info.type()), |
670 bailout_id_(state_info.bailout_id()), | 668 bailout_id_(state_info.bailout_id()), |
671 frame_state_combine_(state_info.state_combine()), | 669 frame_state_combine_(state_info.state_combine()), |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
800 os << " B" << succ.ToInt(); | 798 os << " B" << succ.ToInt(); |
801 } | 799 } |
802 os << "\n"; | 800 os << "\n"; |
803 } | 801 } |
804 return os; | 802 return os; |
805 } | 803 } |
806 | 804 |
807 } // namespace compiler | 805 } // namespace compiler |
808 } // namespace internal | 806 } // namespace internal |
809 } // namespace v8 | 807 } // namespace v8 |
OLD | NEW |