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 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 Emit(kArchRet, g.NoOutput(), | 1050 Emit(kArchRet, g.NoOutput(), |
1051 g.UseLocation(value, linkage()->GetReturnLocation(), | 1051 g.UseLocation(value, linkage()->GetReturnLocation(), |
1052 linkage()->GetReturnType())); | 1052 linkage()->GetReturnType())); |
1053 } else { | 1053 } else { |
1054 Emit(kArchRet, g.NoOutput()); | 1054 Emit(kArchRet, g.NoOutput()); |
1055 } | 1055 } |
1056 } | 1056 } |
1057 | 1057 |
1058 | 1058 |
1059 void InstructionSelector::VisitDeoptimize(Node* value) { | 1059 void InstructionSelector::VisitDeoptimize(Node* value) { |
1060 DCHECK(FLAG_turbo_deoptimization); | |
1061 | |
1062 OperandGenerator g(this); | 1060 OperandGenerator g(this); |
1063 | 1061 |
1064 FrameStateDescriptor* desc = GetFrameStateDescriptor(value); | 1062 FrameStateDescriptor* desc = GetFrameStateDescriptor(value); |
1065 size_t arg_count = desc->GetTotalSize() + 1; // Include deopt id. | 1063 size_t arg_count = desc->GetTotalSize() + 1; // Include deopt id. |
1066 | 1064 |
1067 InstructionOperandVector args(instruction_zone()); | 1065 InstructionOperandVector args(instruction_zone()); |
1068 args.reserve(arg_count); | 1066 args.reserve(arg_count); |
1069 | 1067 |
1070 InstructionSequence::StateId state_id = | 1068 InstructionSequence::StateId state_id = |
1071 sequence()->AddFrameStateDescriptor(desc); | 1069 sequence()->AddFrameStateDescriptor(desc); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 MachineOperatorBuilder::Flags | 1198 MachineOperatorBuilder::Flags |
1201 InstructionSelector::SupportedMachineOperatorFlags() { | 1199 InstructionSelector::SupportedMachineOperatorFlags() { |
1202 return MachineOperatorBuilder::Flag::kNoFlags; | 1200 return MachineOperatorBuilder::Flag::kNoFlags; |
1203 } | 1201 } |
1204 | 1202 |
1205 #endif // !V8_TURBOFAN_BACKEND | 1203 #endif // !V8_TURBOFAN_BACKEND |
1206 | 1204 |
1207 } // namespace compiler | 1205 } // namespace compiler |
1208 } // namespace internal | 1206 } // namespace internal |
1209 } // namespace v8 | 1207 } // namespace v8 |
OLD | NEW |