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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 | 657 |
658 void InstructionSequence::SetSourcePosition(const Instruction* instr, | 658 void InstructionSequence::SetSourcePosition(const Instruction* instr, |
659 SourcePosition value) { | 659 SourcePosition value) { |
660 source_positions_.insert(std::make_pair(instr, value)); | 660 source_positions_.insert(std::make_pair(instr, value)); |
661 } | 661 } |
662 | 662 |
663 | 663 |
664 FrameStateDescriptor::FrameStateDescriptor( | 664 FrameStateDescriptor::FrameStateDescriptor( |
665 Zone* zone, FrameStateType type, BailoutId bailout_id, | 665 Zone* zone, FrameStateType type, BailoutId bailout_id, |
666 OutputFrameStateCombine state_combine, size_t parameters_count, | 666 OutputFrameStateCombine state_combine, size_t parameters_count, |
667 size_t locals_count, size_t stack_count, FrameStateDescriptor* outer_state) | 667 size_t locals_count, size_t stack_count, |
| 668 MaybeHandle<SharedFunctionInfo> shared_info, |
| 669 FrameStateDescriptor* outer_state) |
668 : type_(type), | 670 : type_(type), |
669 bailout_id_(bailout_id), | 671 bailout_id_(bailout_id), |
670 frame_state_combine_(state_combine), | 672 frame_state_combine_(state_combine), |
671 parameters_count_(parameters_count), | 673 parameters_count_(parameters_count), |
672 locals_count_(locals_count), | 674 locals_count_(locals_count), |
673 stack_count_(stack_count), | 675 stack_count_(stack_count), |
674 types_(zone), | 676 types_(zone), |
| 677 shared_info_(shared_info), |
675 outer_state_(outer_state) { | 678 outer_state_(outer_state) { |
676 types_.resize(GetSize(), kMachNone); | 679 types_.resize(GetSize(), kMachNone); |
677 } | 680 } |
678 | 681 |
679 | 682 |
680 size_t FrameStateDescriptor::GetSize(OutputFrameStateCombine combine) const { | 683 size_t FrameStateDescriptor::GetSize(OutputFrameStateCombine combine) const { |
681 size_t size = 1 + parameters_count() + locals_count() + stack_count() + | 684 size_t size = 1 + parameters_count() + locals_count() + stack_count() + |
682 (HasContext() ? 1 : 0); | 685 (HasContext() ? 1 : 0); |
683 switch (combine.kind()) { | 686 switch (combine.kind()) { |
684 case OutputFrameStateCombine::kPushOutput: | 687 case OutputFrameStateCombine::kPushOutput: |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
799 os << " B" << succ.ToInt(); | 802 os << " B" << succ.ToInt(); |
800 } | 803 } |
801 os << "\n"; | 804 os << "\n"; |
802 } | 805 } |
803 return os; | 806 return os; |
804 } | 807 } |
805 | 808 |
806 } // namespace compiler | 809 } // namespace compiler |
807 } // namespace internal | 810 } // namespace internal |
808 } // namespace v8 | 811 } // namespace v8 |
OLD | NEW |