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.h" | 5 #include "src/compiler/instruction-selector.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 | 8 |
9 #include "src/base/adapters.h" | 9 #include "src/base/adapters.h" |
10 #include "src/compiler/instruction-selector-impl.h" | 10 #include "src/compiler/instruction-selector-impl.h" |
(...skipping 913 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 OperandGenerator g(this); | 924 OperandGenerator g(this); |
925 int index = ParameterIndexOf(node->op()); | 925 int index = ParameterIndexOf(node->op()); |
926 Emit(kArchNop, | 926 Emit(kArchNop, |
927 g.DefineAsLocation(node, linkage()->GetParameterLocation(index), | 927 g.DefineAsLocation(node, linkage()->GetParameterLocation(index), |
928 linkage()->GetParameterType(index))); | 928 linkage()->GetParameterType(index))); |
929 } | 929 } |
930 | 930 |
931 | 931 |
932 void InstructionSelector::VisitIfException(Node* node) { | 932 void InstructionSelector::VisitIfException(Node* node) { |
933 OperandGenerator g(this); | 933 OperandGenerator g(this); |
934 Node* call = node->InputAt(0); | 934 Node* call = node->InputAt(1); |
935 DCHECK_EQ(IrOpcode::kCall, call->opcode()); | 935 DCHECK_EQ(IrOpcode::kCall, call->opcode()); |
936 const CallDescriptor* descriptor = OpParameter<const CallDescriptor*>(call); | 936 const CallDescriptor* descriptor = OpParameter<const CallDescriptor*>(call); |
937 Emit(kArchNop, g.DefineAsLocation(node, descriptor->GetReturnLocation(0), | 937 Emit(kArchNop, g.DefineAsLocation(node, descriptor->GetReturnLocation(0), |
938 descriptor->GetReturnType(0))); | 938 descriptor->GetReturnType(0))); |
939 } | 939 } |
940 | 940 |
941 | 941 |
942 void InstructionSelector::VisitOsrValue(Node* node) { | 942 void InstructionSelector::VisitOsrValue(Node* node) { |
943 OperandGenerator g(this); | 943 OperandGenerator g(this); |
944 int index = OpParameter<int>(node); | 944 int index = OpParameter<int>(node); |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1162 MachineOperatorBuilder::Flags | 1162 MachineOperatorBuilder::Flags |
1163 InstructionSelector::SupportedMachineOperatorFlags() { | 1163 InstructionSelector::SupportedMachineOperatorFlags() { |
1164 return MachineOperatorBuilder::Flag::kNoFlags; | 1164 return MachineOperatorBuilder::Flag::kNoFlags; |
1165 } | 1165 } |
1166 | 1166 |
1167 #endif // !V8_TURBOFAN_BACKEND | 1167 #endif // !V8_TURBOFAN_BACKEND |
1168 | 1168 |
1169 } // namespace compiler | 1169 } // namespace compiler |
1170 } // namespace internal | 1170 } // namespace internal |
1171 } // namespace v8 | 1171 } // namespace v8 |
OLD | NEW |