| 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 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 int shared_info_id = DefineDeoptimizationLiteral(shared_info); | 552 int shared_info_id = DefineDeoptimizationLiteral(shared_info); |
| 553 | 553 |
| 554 switch (descriptor->type()) { | 554 switch (descriptor->type()) { |
| 555 case FrameStateType::kJavaScriptFunction: | 555 case FrameStateType::kJavaScriptFunction: |
| 556 translation->BeginJSFrame( | 556 translation->BeginJSFrame( |
| 557 descriptor->bailout_id(), shared_info_id, | 557 descriptor->bailout_id(), shared_info_id, |
| 558 static_cast<unsigned int>(descriptor->GetSize(state_combine) - | 558 static_cast<unsigned int>(descriptor->GetSize(state_combine) - |
| 559 (1 + descriptor->parameters_count()))); | 559 (1 + descriptor->parameters_count()))); |
| 560 break; | 560 break; |
| 561 case FrameStateType::kInterpretedFunction: | 561 case FrameStateType::kInterpretedFunction: |
| 562 // TODO(rmcilroy): Implement interpreted function translation. | 562 translation->BeginInterpretedFrame( |
| 563 descriptor->bailout_id(), shared_info_id, |
| 564 static_cast<unsigned int>(descriptor->locals_count())); |
| 563 break; | 565 break; |
| 564 case FrameStateType::kArgumentsAdaptor: | 566 case FrameStateType::kArgumentsAdaptor: |
| 565 translation->BeginArgumentsAdaptorFrame( | 567 translation->BeginArgumentsAdaptorFrame( |
| 566 shared_info_id, | 568 shared_info_id, |
| 567 static_cast<unsigned int>(descriptor->parameters_count())); | 569 static_cast<unsigned int>(descriptor->parameters_count())); |
| 568 break; | 570 break; |
| 569 case FrameStateType::kConstructStub: | 571 case FrameStateType::kConstructStub: |
| 570 translation->BeginConstructStubFrame( | 572 translation->BeginConstructStubFrame( |
| 571 shared_info_id, | 573 shared_info_id, |
| 572 static_cast<unsigned int>(descriptor->parameters_count())); | 574 static_cast<unsigned int>(descriptor->parameters_count())); |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 708 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
| 707 gen->ools_ = this; | 709 gen->ools_ = this; |
| 708 } | 710 } |
| 709 | 711 |
| 710 | 712 |
| 711 OutOfLineCode::~OutOfLineCode() {} | 713 OutOfLineCode::~OutOfLineCode() {} |
| 712 | 714 |
| 713 } // namespace compiler | 715 } // namespace compiler |
| 714 } // namespace internal | 716 } // namespace internal |
| 715 } // namespace v8 | 717 } // namespace v8 |
| OLD | NEW |