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/compiler/code-generator-impl.h" | 8 #include "src/compiler/code-generator-impl.h" |
9 #include "src/compiler/linkage.h" | 9 #include "src/compiler/linkage.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
544 translation->BeginJSFrame( | 544 translation->BeginJSFrame( |
545 descriptor->bailout_id(), shared_info_id, | 545 descriptor->bailout_id(), shared_info_id, |
546 static_cast<unsigned int>(descriptor->GetSize(state_combine) - | 546 static_cast<unsigned int>(descriptor->GetSize(state_combine) - |
547 (1 + descriptor->parameters_count()))); | 547 (1 + descriptor->parameters_count()))); |
548 break; | 548 break; |
549 case FrameStateType::kArgumentsAdaptor: | 549 case FrameStateType::kArgumentsAdaptor: |
550 translation->BeginArgumentsAdaptorFrame( | 550 translation->BeginArgumentsAdaptorFrame( |
551 shared_info_id, | 551 shared_info_id, |
552 static_cast<unsigned int>(descriptor->parameters_count())); | 552 static_cast<unsigned int>(descriptor->parameters_count())); |
553 break; | 553 break; |
| 554 case FrameStateType::kConstructStub: |
| 555 translation->BeginConstructStubFrame( |
| 556 shared_info_id, |
| 557 static_cast<unsigned int>(descriptor->parameters_count())); |
| 558 break; |
554 } | 559 } |
555 | 560 |
556 for (size_t i = 0; i < descriptor->GetSize(state_combine); i++) { | 561 for (size_t i = 0; i < descriptor->GetSize(state_combine); i++) { |
557 OperandAndType op = TypedOperandForFrameState( | 562 OperandAndType op = TypedOperandForFrameState( |
558 descriptor, instr, frame_state_offset, i, state_combine); | 563 descriptor, instr, frame_state_offset, i, state_combine); |
559 AddTranslationForOperand(translation, instr, op.operand, op.type); | 564 AddTranslationForOperand(translation, instr, op.operand, op.type); |
560 } | 565 } |
561 } | 566 } |
562 | 567 |
563 | 568 |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
667 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 672 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
668 gen->ools_ = this; | 673 gen->ools_ = this; |
669 } | 674 } |
670 | 675 |
671 | 676 |
672 OutOfLineCode::~OutOfLineCode() {} | 677 OutOfLineCode::~OutOfLineCode() {} |
673 | 678 |
674 } // namespace compiler | 679 } // namespace compiler |
675 } // namespace internal | 680 } // namespace internal |
676 } // namespace v8 | 681 } // namespace v8 |
OLD | NEW |