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 #include "src/compiler/node-properties-inl.h" | 7 #include "src/compiler/node-properties-inl.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 498 matching lines...) Loading... |
509 FrameStateDescriptor* frame_state_descriptor = NULL; | 509 FrameStateDescriptor* frame_state_descriptor = NULL; |
510 | 510 |
511 if (descriptor->NeedsFrameState()) { | 511 if (descriptor->NeedsFrameState()) { |
512 frame_state_descriptor = | 512 frame_state_descriptor = |
513 GetFrameStateDescriptor(call->InputAt(descriptor->InputCount())); | 513 GetFrameStateDescriptor(call->InputAt(descriptor->InputCount())); |
514 } | 514 } |
515 | 515 |
516 CallBuffer buffer(zone(), descriptor, frame_state_descriptor); | 516 CallBuffer buffer(zone(), descriptor, frame_state_descriptor); |
517 | 517 |
518 // Compute InstructionOperands for inputs and outputs. | 518 // Compute InstructionOperands for inputs and outputs. |
519 InitializeCallBuffer(call, &buffer, true, true, continuation, deoptimization); | 519 InitializeCallBuffer(call, &buffer, true, true); |
520 | 520 |
521 // Push any stack arguments. | 521 // Push any stack arguments. |
522 for (NodeVectorRIter input = buffer.pushed_nodes.rbegin(); | 522 for (NodeVectorRIter input = buffer.pushed_nodes.rbegin(); |
523 input != buffer.pushed_nodes.rend(); input++) { | 523 input != buffer.pushed_nodes.rend(); input++) { |
524 // TODO(titzer): handle pushing double parameters. | 524 // TODO(titzer): handle pushing double parameters. |
525 Emit(kIA32Push, NULL, | 525 Emit(kIA32Push, NULL, |
526 g.CanBeImmediate(*input) ? g.UseImmediate(*input) : g.Use(*input)); | 526 g.CanBeImmediate(*input) ? g.UseImmediate(*input) : g.Use(*input)); |
527 } | 527 } |
528 | 528 |
529 // Select the appropriate opcode based on the call type. | 529 // Select the appropriate opcode based on the call type. |
(...skipping 30 matching lines...) Loading... |
560 if (descriptor->kind() == CallDescriptor::kCallAddress && | 560 if (descriptor->kind() == CallDescriptor::kCallAddress && |
561 buffer.pushed_nodes.size() > 0) { | 561 buffer.pushed_nodes.size() > 0) { |
562 DCHECK(deoptimization == NULL && continuation == NULL); | 562 DCHECK(deoptimization == NULL && continuation == NULL); |
563 Emit(kArchDrop | MiscField::encode(buffer.pushed_nodes.size()), NULL); | 563 Emit(kArchDrop | MiscField::encode(buffer.pushed_nodes.size()), NULL); |
564 } | 564 } |
565 } | 565 } |
566 | 566 |
567 } // namespace compiler | 567 } // namespace compiler |
568 } // namespace internal | 568 } // namespace internal |
569 } // namespace v8 | 569 } // namespace v8 |
OLD | NEW |