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/assembler-inl.h" | 8 #include "src/assembler-inl.h" |
9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
10 #include "src/callable.h" | |
Michael Starzinger
2017/06/06 14:32:54
nit: Looks like a left-over, shouldn't be needed.
danno
2017/06/07 09:00:56
Done.
| |
10 #include "src/compilation-info.h" | 11 #include "src/compilation-info.h" |
11 #include "src/compiler/code-generator-impl.h" | 12 #include "src/compiler/code-generator-impl.h" |
12 #include "src/compiler/linkage.h" | 13 #include "src/compiler/linkage.h" |
13 #include "src/compiler/pipeline.h" | 14 #include "src/compiler/pipeline.h" |
14 #include "src/frames-inl.h" | 15 #include "src/frames-inl.h" |
15 #include "src/macro-assembler-inl.h" | 16 #include "src/macro-assembler-inl.h" |
16 | 17 |
17 namespace v8 { | 18 namespace v8 { |
18 namespace internal { | 19 namespace internal { |
19 namespace compiler { | 20 namespace compiler { |
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
806 break; | 807 break; |
807 case FrameStateType::kTailCallerFunction: | 808 case FrameStateType::kTailCallerFunction: |
808 translation->BeginTailCallerFrame(shared_info_id); | 809 translation->BeginTailCallerFrame(shared_info_id); |
809 break; | 810 break; |
810 case FrameStateType::kConstructStub: | 811 case FrameStateType::kConstructStub: |
811 DCHECK(descriptor->bailout_id().IsValidForConstructStub()); | 812 DCHECK(descriptor->bailout_id().IsValidForConstructStub()); |
812 translation->BeginConstructStubFrame( | 813 translation->BeginConstructStubFrame( |
813 descriptor->bailout_id(), shared_info_id, | 814 descriptor->bailout_id(), shared_info_id, |
814 static_cast<unsigned int>(descriptor->parameters_count())); | 815 static_cast<unsigned int>(descriptor->parameters_count())); |
815 break; | 816 break; |
817 case FrameStateType::kBuiltinContinuation: { | |
818 BailoutId bailout_id = descriptor->bailout_id(); | |
819 int parameter_count = | |
820 static_cast<unsigned int>(descriptor->parameters_count()); | |
821 translation->BeginBuiltinContinuationFrame(bailout_id, shared_info_id, | |
822 parameter_count); | |
823 break; | |
824 } | |
825 case FrameStateType::kJavaScriptBuiltinContinuation: { | |
826 BailoutId bailout_id = descriptor->bailout_id(); | |
827 int parameter_count = | |
828 static_cast<unsigned int>(descriptor->parameters_count()); | |
829 translation->BeginJavaScriptBuiltinContinuationFrame( | |
830 bailout_id, shared_info_id, parameter_count); | |
831 break; | |
832 } | |
816 case FrameStateType::kGetterStub: | 833 case FrameStateType::kGetterStub: |
817 translation->BeginGetterStubFrame(shared_info_id); | 834 translation->BeginGetterStubFrame(shared_info_id); |
818 break; | 835 break; |
819 case FrameStateType::kSetterStub: | 836 case FrameStateType::kSetterStub: |
820 translation->BeginSetterStubFrame(shared_info_id); | 837 translation->BeginSetterStubFrame(shared_info_id); |
821 break; | 838 break; |
822 } | 839 } |
823 | 840 |
824 TranslateFrameStateDescriptorOperands(descriptor, iter, state_combine, | 841 TranslateFrameStateDescriptorOperands(descriptor, iter, state_combine, |
825 translation); | 842 translation); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
995 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 1012 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
996 gen->ools_ = this; | 1013 gen->ools_ = this; |
997 } | 1014 } |
998 | 1015 |
999 | 1016 |
1000 OutOfLineCode::~OutOfLineCode() {} | 1017 OutOfLineCode::~OutOfLineCode() {} |
1001 | 1018 |
1002 } // namespace compiler | 1019 } // namespace compiler |
1003 } // namespace internal | 1020 } // namespace internal |
1004 } // namespace v8 | 1021 } // namespace v8 |
OLD | NEW |