| 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 573 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 584 switch (descriptor->type()) { | 584 switch (descriptor->type()) { |
| 585 case FrameStateType::kJavaScriptFunction: | 585 case FrameStateType::kJavaScriptFunction: |
| 586 translation->BeginJSFrame( | 586 translation->BeginJSFrame( |
| 587 descriptor->bailout_id(), shared_info_id, | 587 descriptor->bailout_id(), shared_info_id, |
| 588 static_cast<unsigned int>(descriptor->GetSize(state_combine) - | 588 static_cast<unsigned int>(descriptor->GetSize(state_combine) - |
| 589 (1 + descriptor->parameters_count()))); | 589 (1 + descriptor->parameters_count()))); |
| 590 break; | 590 break; |
| 591 case FrameStateType::kInterpretedFunction: | 591 case FrameStateType::kInterpretedFunction: |
| 592 translation->BeginInterpretedFrame( | 592 translation->BeginInterpretedFrame( |
| 593 descriptor->bailout_id(), shared_info_id, | 593 descriptor->bailout_id(), shared_info_id, |
| 594 static_cast<unsigned int>(descriptor->locals_count())); | 594 static_cast<unsigned int>(descriptor->locals_count() + 1)); |
| 595 break; | 595 break; |
| 596 case FrameStateType::kArgumentsAdaptor: | 596 case FrameStateType::kArgumentsAdaptor: |
| 597 translation->BeginArgumentsAdaptorFrame( | 597 translation->BeginArgumentsAdaptorFrame( |
| 598 shared_info_id, | 598 shared_info_id, |
| 599 static_cast<unsigned int>(descriptor->parameters_count())); | 599 static_cast<unsigned int>(descriptor->parameters_count())); |
| 600 break; | 600 break; |
| 601 case FrameStateType::kConstructStub: | 601 case FrameStateType::kConstructStub: |
| 602 translation->BeginConstructStubFrame( | 602 translation->BeginConstructStubFrame( |
| 603 shared_info_id, | 603 shared_info_id, |
| 604 static_cast<unsigned int>(descriptor->parameters_count())); | 604 static_cast<unsigned int>(descriptor->parameters_count())); |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 736 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
| 737 gen->ools_ = this; | 737 gen->ools_ = this; |
| 738 } | 738 } |
| 739 | 739 |
| 740 | 740 |
| 741 OutOfLineCode::~OutOfLineCode() {} | 741 OutOfLineCode::~OutOfLineCode() {} |
| 742 | 742 |
| 743 } // namespace compiler | 743 } // namespace compiler |
| 744 } // namespace internal | 744 } // namespace internal |
| 745 } // namespace v8 | 745 } // namespace v8 |
| OLD | NEW |