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/compiler/instruction-selector-impl.h" | 9 #include "src/compiler/instruction-selector-impl.h" |
10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
391 callee->opcode() == IrOpcode::kInt64Constant)) | 391 callee->opcode() == IrOpcode::kInt64Constant)) |
392 ? g.UseImmediate(callee) | 392 ? g.UseImmediate(callee) |
393 : g.UseRegister(callee)); | 393 : g.UseRegister(callee)); |
394 break; | 394 break; |
395 case CallDescriptor::kCallJSFunction: | 395 case CallDescriptor::kCallJSFunction: |
396 buffer->instruction_args.push_back( | 396 buffer->instruction_args.push_back( |
397 g.UseLocation(callee, buffer->descriptor->GetInputLocation(0), | 397 g.UseLocation(callee, buffer->descriptor->GetInputLocation(0), |
398 buffer->descriptor->GetInputType(0))); | 398 buffer->descriptor->GetInputType(0))); |
399 break; | 399 break; |
400 } | 400 } |
401 DCHECK_EQ(1, static_cast<int>(buffer->instruction_args.size())); | 401 DCHECK_EQ(1u, buffer->instruction_args.size()); |
402 | 402 |
403 // If the call needs a frame state, we insert the state information as | 403 // If the call needs a frame state, we insert the state information as |
404 // follows (n is the number of value inputs to the frame state): | 404 // follows (n is the number of value inputs to the frame state): |
405 // arg 1 : deoptimization id. | 405 // arg 1 : deoptimization id. |
406 // arg 2 - arg (n + 1) : value inputs to the frame state. | 406 // arg 2 - arg (n + 1) : value inputs to the frame state. |
407 if (buffer->frame_state_descriptor != NULL) { | 407 if (buffer->frame_state_descriptor != NULL) { |
408 InstructionSequence::StateId state_id = | 408 InstructionSequence::StateId state_id = |
409 sequence()->AddFrameStateDescriptor(buffer->frame_state_descriptor); | 409 sequence()->AddFrameStateDescriptor(buffer->frame_state_descriptor); |
410 buffer->instruction_args.push_back(g.TempImmediate(state_id.ToInt())); | 410 buffer->instruction_args.push_back(g.TempImmediate(state_id.ToInt())); |
411 | 411 |
(...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 MachineOperatorBuilder::Flags | 1213 MachineOperatorBuilder::Flags |
1214 InstructionSelector::SupportedMachineOperatorFlags() { | 1214 InstructionSelector::SupportedMachineOperatorFlags() { |
1215 return MachineOperatorBuilder::Flag::kNoFlags; | 1215 return MachineOperatorBuilder::Flag::kNoFlags; |
1216 } | 1216 } |
1217 | 1217 |
1218 #endif // !V8_TURBOFAN_BACKEND | 1218 #endif // !V8_TURBOFAN_BACKEND |
1219 | 1219 |
1220 } // namespace compiler | 1220 } // namespace compiler |
1221 } // namespace internal | 1221 } // namespace internal |
1222 } // namespace v8 | 1222 } // namespace v8 |
OLD | NEW |