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 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
551 } | 551 } |
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: | |
562 // TODO(rmcilroy): Implement interpreted function translation. | |
Jarin
2015/12/13 20:26:30
Until this is implemented, could you have UNIMPLEM
rmcilroy
2015/12/16 15:40:56
This would cause all the current bytecode-graph-bu
| |
563 break; | |
561 case FrameStateType::kArgumentsAdaptor: | 564 case FrameStateType::kArgumentsAdaptor: |
562 translation->BeginArgumentsAdaptorFrame( | 565 translation->BeginArgumentsAdaptorFrame( |
563 shared_info_id, | 566 shared_info_id, |
564 static_cast<unsigned int>(descriptor->parameters_count())); | 567 static_cast<unsigned int>(descriptor->parameters_count())); |
565 break; | 568 break; |
566 case FrameStateType::kConstructStub: | 569 case FrameStateType::kConstructStub: |
567 translation->BeginConstructStubFrame( | 570 translation->BeginConstructStubFrame( |
568 shared_info_id, | 571 shared_info_id, |
569 static_cast<unsigned int>(descriptor->parameters_count())); | 572 static_cast<unsigned int>(descriptor->parameters_count())); |
570 break; | 573 break; |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
703 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { | 706 : frame_(gen->frame()), masm_(gen->masm()), next_(gen->ools_) { |
704 gen->ools_ = this; | 707 gen->ools_ = this; |
705 } | 708 } |
706 | 709 |
707 | 710 |
708 OutOfLineCode::~OutOfLineCode() {} | 711 OutOfLineCode::~OutOfLineCode() {} |
709 | 712 |
710 } // namespace compiler | 713 } // namespace compiler |
711 } // namespace internal | 714 } // namespace internal |
712 } // namespace v8 | 715 } // namespace v8 |
OLD | NEW |