| 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 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 case CallDescriptor::kCallJSFunction: | 631 case CallDescriptor::kCallJSFunction: |
| 632 opcode = kArchCallJSFunction; | 632 opcode = kArchCallJSFunction; |
| 633 break; | 633 break; |
| 634 default: | 634 default: |
| 635 UNREACHABLE(); | 635 UNREACHABLE(); |
| 636 return; | 636 return; |
| 637 } | 637 } |
| 638 opcode |= MiscField::encode(descriptor->flags()); | 638 opcode |= MiscField::encode(descriptor->flags()); |
| 639 | 639 |
| 640 // Emit the call instruction. | 640 // Emit the call instruction. |
| 641 InstructionOperand** first_output = |
| 642 buffer.outputs.size() > 0 ? &buffer.outputs.front() : NULL; |
| 641 Instruction* call_instr = | 643 Instruction* call_instr = |
| 642 Emit(opcode, buffer.outputs.size(), &buffer.outputs.front(), | 644 Emit(opcode, buffer.outputs.size(), first_output, |
| 643 buffer.instruction_args.size(), &buffer.instruction_args.front()); | 645 buffer.instruction_args.size(), &buffer.instruction_args.front()); |
| 644 call_instr->MarkAsCall(); | 646 call_instr->MarkAsCall(); |
| 645 } | 647 } |
| 646 | 648 |
| 647 | 649 |
| 648 // Shared routine for multiple compare operations. | 650 // Shared routine for multiple compare operations. |
| 649 static inline void VisitCompare(InstructionSelector* selector, | 651 static inline void VisitCompare(InstructionSelector* selector, |
| 650 InstructionCode opcode, | 652 InstructionCode opcode, |
| 651 InstructionOperand* left, | 653 InstructionOperand* left, |
| 652 InstructionOperand* right, | 654 InstructionOperand* right, |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 866 | 868 |
| 867 | 869 |
| 868 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { | 870 void InstructionSelector::VisitFloat64LessThanOrEqual(Node* node) { |
| 869 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); | 871 FlagsContinuation cont(kUnorderedLessThanOrEqual, node); |
| 870 VisitFloat64Compare(this, node, &cont); | 872 VisitFloat64Compare(this, node, &cont); |
| 871 } | 873 } |
| 872 | 874 |
| 873 } // namespace compiler | 875 } // namespace compiler |
| 874 } // namespace internal | 876 } // namespace internal |
| 875 } // namespace v8 | 877 } // namespace v8 |
| OLD | NEW |