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/base/bits.h" | 5 #include "src/base/bits.h" |
6 #include "src/compiler/instruction-selector-impl.h" | 6 #include "src/compiler/instruction-selector-impl.h" |
7 #include "src/compiler/node-matchers.h" | 7 #include "src/compiler/node-matchers.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 case CallDescriptor::kCallAddress: | 814 case CallDescriptor::kCallAddress: |
815 opcode = kArchCallAddress; | 815 opcode = kArchCallAddress; |
816 break; | 816 break; |
817 case CallDescriptor::kCallJSFunction: | 817 case CallDescriptor::kCallJSFunction: |
818 opcode = kArchCallJSFunction; | 818 opcode = kArchCallJSFunction; |
819 break; | 819 break; |
820 default: | 820 default: |
821 UNREACHABLE(); | 821 UNREACHABLE(); |
822 return; | 822 return; |
823 } | 823 } |
824 opcode |= MiscField::encode(descriptor->deoptimization_support()); | 824 opcode |= MiscField::encode(descriptor->flags()); |
825 | 825 |
826 // Emit the call instruction. | 826 // Emit the call instruction. |
827 Instruction* call_instr = | 827 Instruction* call_instr = |
828 Emit(opcode, buffer.outputs.size(), &buffer.outputs.front(), | 828 Emit(opcode, buffer.outputs.size(), &buffer.outputs.front(), |
829 buffer.instruction_args.size(), &buffer.instruction_args.front()); | 829 buffer.instruction_args.size(), &buffer.instruction_args.front()); |
830 | 830 |
831 call_instr->MarkAsCall(); | 831 call_instr->MarkAsCall(); |
832 if (deoptimization != NULL) { | 832 if (deoptimization != NULL) { |
833 DCHECK(continuation != NULL); | 833 DCHECK(continuation != NULL); |
834 call_instr->MarkAsControl(); | 834 call_instr->MarkAsControl(); |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
954 } else { | 954 } else { |
955 DCHECK(cont->IsSet()); | 955 DCHECK(cont->IsSet()); |
956 Emit(cont->Encode(kArmVcmpF64), g.DefineAsRegister(cont->result()), | 956 Emit(cont->Encode(kArmVcmpF64), g.DefineAsRegister(cont->result()), |
957 g.UseRegister(m.left().node()), g.UseRegister(m.right().node())); | 957 g.UseRegister(m.left().node()), g.UseRegister(m.right().node())); |
958 } | 958 } |
959 } | 959 } |
960 | 960 |
961 } // namespace compiler | 961 } // namespace compiler |
962 } // namespace internal | 962 } // namespace internal |
963 } // namespace v8 | 963 } // namespace v8 |
OLD | NEW |