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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 (call_address_immediate && | 338 (call_address_immediate && |
339 callee->opcode() == IrOpcode::kExternalConstant) | 339 callee->opcode() == IrOpcode::kExternalConstant) |
340 ? g.UseImmediate(callee) | 340 ? g.UseImmediate(callee) |
341 : g.UseRegister(callee)); | 341 : g.UseRegister(callee)); |
342 break; | 342 break; |
343 case CallDescriptor::kCallJSFunction: | 343 case CallDescriptor::kCallJSFunction: |
344 buffer->instruction_args.push_back( | 344 buffer->instruction_args.push_back( |
345 g.UseLocation(callee, buffer->descriptor->GetInputLocation(0), | 345 g.UseLocation(callee, buffer->descriptor->GetInputLocation(0), |
346 buffer->descriptor->GetInputType(0))); | 346 buffer->descriptor->GetInputType(0))); |
347 break; | 347 break; |
348 case CallDescriptor::kInterpreterDispatch: | |
349 buffer->instruction_args.push_back(g.UseRegister(callee)); | |
350 break; | |
351 } | 348 } |
352 DCHECK_EQ(1u, buffer->instruction_args.size()); | 349 DCHECK_EQ(1u, buffer->instruction_args.size()); |
353 | 350 |
354 // If the call needs a frame state, we insert the state information as | 351 // If the call needs a frame state, we insert the state information as |
355 // follows (n is the number of value inputs to the frame state): | 352 // follows (n is the number of value inputs to the frame state): |
356 // arg 1 : deoptimization id. | 353 // arg 1 : deoptimization id. |
357 // arg 2 - arg (n + 1) : value inputs to the frame state. | 354 // arg 2 - arg (n + 1) : value inputs to the frame state. |
358 if (buffer->frame_state_descriptor != NULL) { | 355 if (buffer->frame_state_descriptor != NULL) { |
359 InstructionSequence::StateId state_id = | 356 InstructionSequence::StateId state_id = |
360 sequence()->AddFrameStateDescriptor(buffer->frame_state_descriptor); | 357 sequence()->AddFrameStateDescriptor(buffer->frame_state_descriptor); |
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 MachineOperatorBuilder::Flags | 1156 MachineOperatorBuilder::Flags |
1160 InstructionSelector::SupportedMachineOperatorFlags() { | 1157 InstructionSelector::SupportedMachineOperatorFlags() { |
1161 return MachineOperatorBuilder::Flag::kNoFlags; | 1158 return MachineOperatorBuilder::Flag::kNoFlags; |
1162 } | 1159 } |
1163 | 1160 |
1164 #endif // !V8_TURBOFAN_BACKEND | 1161 #endif // !V8_TURBOFAN_BACKEND |
1165 | 1162 |
1166 } // namespace compiler | 1163 } // namespace compiler |
1167 } // namespace internal | 1164 } // namespace internal |
1168 } // namespace v8 | 1165 } // namespace v8 |
OLD | NEW |