OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 | 7 |
8 namespace v8 { | 8 namespace v8 { |
9 namespace internal { | 9 namespace internal { |
10 namespace compiler { | 10 namespace compiler { |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
664 } | 664 } |
665 | 665 |
666 | 666 |
667 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, | 667 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, |
668 BasicBlock* deoptimization) { | 668 BasicBlock* deoptimization) { |
669 X64OperandGenerator g(this); | 669 X64OperandGenerator g(this); |
670 CallDescriptor* descriptor = OpParameter<CallDescriptor*>(call); | 670 CallDescriptor* descriptor = OpParameter<CallDescriptor*>(call); |
671 | 671 |
672 FrameStateDescriptor* frame_state_descriptor = NULL; | 672 FrameStateDescriptor* frame_state_descriptor = NULL; |
673 if (descriptor->NeedsFrameState()) { | 673 if (descriptor->NeedsFrameState()) { |
674 frame_state_descriptor = | 674 frame_state_descriptor = GetFrameStateDescriptor( |
675 GetFrameStateDescriptor(call->InputAt(descriptor->InputCount())); | 675 call->InputAt(static_cast<int>(descriptor->InputCount()))); |
676 } | 676 } |
677 | 677 |
678 CallBuffer buffer(zone(), descriptor, frame_state_descriptor); | 678 CallBuffer buffer(zone(), descriptor, frame_state_descriptor); |
679 | 679 |
680 // Compute InstructionOperands for inputs and outputs. | 680 // Compute InstructionOperands for inputs and outputs. |
681 InitializeCallBuffer(call, &buffer, true, true); | 681 InitializeCallBuffer(call, &buffer, true, true); |
682 | 682 |
683 // TODO(dcarney): stack alignment for c calls. | 683 // TODO(dcarney): stack alignment for c calls. |
684 // TODO(dcarney): shadow space on window for c calls. | 684 // TODO(dcarney): shadow space on window for c calls. |
685 // Push any stack arguments. | 685 // Push any stack arguments. |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
726 DCHECK(deoptimization == NULL && continuation == NULL); | 726 DCHECK(deoptimization == NULL && continuation == NULL); |
727 Emit(kArchDrop | | 727 Emit(kArchDrop | |
728 MiscField::encode(static_cast<int>(buffer.pushed_nodes.size())), | 728 MiscField::encode(static_cast<int>(buffer.pushed_nodes.size())), |
729 NULL); | 729 NULL); |
730 } | 730 } |
731 } | 731 } |
732 | 732 |
733 } // namespace compiler | 733 } // namespace compiler |
734 } // namespace internal | 734 } // namespace internal |
735 } // namespace v8 | 735 } // namespace v8 |
OLD | NEW |