OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/address-map.h" | 7 #include "src/address-map.h" |
8 #include "src/base/adapters.h" | 8 #include "src/base/adapters.h" |
9 #include "src/compiler/code-generator-impl.h" | 9 #include "src/compiler/code-generator-impl.h" |
10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
(...skipping 760 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
771 static_cast<unsigned int>(descriptor->parameters_count())); | 771 static_cast<unsigned int>(descriptor->parameters_count())); |
772 break; | 772 break; |
773 case FrameStateType::kTailCallerFunction: | 773 case FrameStateType::kTailCallerFunction: |
774 translation->BeginTailCallerFrame(shared_info_id); | 774 translation->BeginTailCallerFrame(shared_info_id); |
775 break; | 775 break; |
776 case FrameStateType::kConstructStub: | 776 case FrameStateType::kConstructStub: |
777 translation->BeginConstructStubFrame( | 777 translation->BeginConstructStubFrame( |
778 shared_info_id, | 778 shared_info_id, |
779 static_cast<unsigned int>(descriptor->parameters_count())); | 779 static_cast<unsigned int>(descriptor->parameters_count())); |
780 break; | 780 break; |
| 781 case FrameStateType::kGetterStub: |
| 782 translation->BeginGetterStubFrame(shared_info_id); |
| 783 break; |
| 784 case FrameStateType::kSetterStub: |
| 785 translation->BeginSetterStubFrame(shared_info_id); |
| 786 break; |
781 } | 787 } |
782 | 788 |
783 TranslateFrameStateDescriptorOperands(descriptor, iter, state_combine, | 789 TranslateFrameStateDescriptorOperands(descriptor, iter, state_combine, |
784 translation); | 790 translation); |
785 } | 791 } |
786 | 792 |
787 | 793 |
788 int CodeGenerator::BuildTranslation(Instruction* instr, int pc_offset, | 794 int CodeGenerator::BuildTranslation(Instruction* instr, int pc_offset, |
789 size_t frame_state_offset, | 795 size_t frame_state_offset, |
790 OutputFrameStateCombine state_combine) { | 796 OutputFrameStateCombine state_combine) { |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
920 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 926 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
921 gen->ools_ = this; | 927 gen->ools_ = this; |
922 } | 928 } |
923 | 929 |
924 | 930 |
925 OutOfLineCode::~OutOfLineCode() {} | 931 OutOfLineCode::~OutOfLineCode() {} |
926 | 932 |
927 } // namespace compiler | 933 } // namespace compiler |
928 } // namespace internal | 934 } // namespace internal |
929 } // namespace v8 | 935 } // namespace v8 |
OLD | NEW |