| 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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 644 case CallDescriptor::kCallAddress: | 644 case CallDescriptor::kCallAddress: |
| 645 opcode = kArchCallAddress; | 645 opcode = kArchCallAddress; |
| 646 break; | 646 break; |
| 647 case CallDescriptor::kCallJSFunction: | 647 case CallDescriptor::kCallJSFunction: |
| 648 opcode = kArchCallJSFunction; | 648 opcode = kArchCallJSFunction; |
| 649 break; | 649 break; |
| 650 default: | 650 default: |
| 651 UNREACHABLE(); | 651 UNREACHABLE(); |
| 652 return; | 652 return; |
| 653 } | 653 } |
| 654 opcode |= MiscField::encode(descriptor->deoptimization_support()); | 654 opcode |= MiscField::encode(descriptor->flags()); |
| 655 | 655 |
| 656 // Emit the call instruction. | 656 // Emit the call instruction. |
| 657 Instruction* call_instr = | 657 Instruction* call_instr = |
| 658 Emit(opcode, buffer.outputs.size(), &buffer.outputs.front(), | 658 Emit(opcode, buffer.outputs.size(), &buffer.outputs.front(), |
| 659 buffer.instruction_args.size(), &buffer.instruction_args.front()); | 659 buffer.instruction_args.size(), &buffer.instruction_args.front()); |
| 660 | 660 |
| 661 call_instr->MarkAsCall(); | 661 call_instr->MarkAsCall(); |
| 662 if (deoptimization != NULL) { | 662 if (deoptimization != NULL) { |
| 663 DCHECK(continuation != NULL); | 663 DCHECK(continuation != NULL); |
| 664 call_instr->MarkAsControl(); | 664 call_instr->MarkAsControl(); |
| 665 } | 665 } |
| 666 | 666 |
| 667 // Caller clean up of stack for C-style calls. | 667 // Caller clean up of stack for C-style calls. |
| 668 if (is_c_frame && aligned_push_count > 0) { | 668 if (is_c_frame && aligned_push_count > 0) { |
| 669 DCHECK(deoptimization == NULL && continuation == NULL); | 669 DCHECK(deoptimization == NULL && continuation == NULL); |
| 670 Emit(kArchDrop | MiscField::encode(aligned_push_count), NULL); | 670 Emit(kArchDrop | MiscField::encode(aligned_push_count), NULL); |
| 671 } | 671 } |
| 672 } | 672 } |
| 673 | 673 |
| 674 } // namespace compiler | 674 } // namespace compiler |
| 675 } // namespace internal | 675 } // namespace internal |
| 676 } // namespace v8 | 676 } // namespace v8 |
| OLD | NEW |