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 "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties-inl.h" | 9 #include "src/compiler/node-properties-inl.h" |
10 #include "src/compiler/pipeline.h" | 10 #include "src/compiler/pipeline.h" |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 if (buffer->descriptor->CanLazilyDeoptimize()) { | 375 if (buffer->descriptor->CanLazilyDeoptimize()) { |
376 DCHECK(cont_node != NULL); | 376 DCHECK(cont_node != NULL); |
377 DCHECK(deopt_node != NULL); | 377 DCHECK(deopt_node != NULL); |
378 buffer->instruction_args.push_back(g.Label(cont_node)); | 378 buffer->instruction_args.push_back(g.Label(cont_node)); |
379 buffer->instruction_args.push_back(g.Label(deopt_node)); | 379 buffer->instruction_args.push_back(g.Label(deopt_node)); |
380 } else { | 380 } else { |
381 DCHECK(cont_node == NULL); | 381 DCHECK(cont_node == NULL); |
382 DCHECK(deopt_node == NULL); | 382 DCHECK(deopt_node == NULL); |
383 } | 383 } |
384 | 384 |
385 DCHECK(input_count == | 385 DCHECK(static_cast<size_t>(input_count) == |
386 (buffer->instruction_args.size() - buffer->control_count() + | 386 (buffer->instruction_args.size() - buffer->control_count() + |
387 buffer->pushed_nodes.size() - buffer->frame_state_value_count())); | 387 buffer->pushed_nodes.size() - buffer->frame_state_value_count())); |
388 } | 388 } |
389 | 389 |
390 | 390 |
391 void InstructionSelector::VisitBlock(BasicBlock* block) { | 391 void InstructionSelector::VisitBlock(BasicBlock* block) { |
392 DCHECK_EQ(NULL, current_block_); | 392 DCHECK_EQ(NULL, current_block_); |
393 current_block_ = block; | 393 current_block_ = block; |
394 int current_block_end = static_cast<int>(instructions_.size()); | 394 int current_block_end = static_cast<int>(instructions_.size()); |
395 | 395 |
(...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 | 1127 |
1128 | 1128 |
1129 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, | 1129 void InstructionSelector::VisitCall(Node* call, BasicBlock* continuation, |
1130 BasicBlock* deoptimization) {} | 1130 BasicBlock* deoptimization) {} |
1131 | 1131 |
1132 #endif // !V8_TURBOFAN_BACKEND | 1132 #endif // !V8_TURBOFAN_BACKEND |
1133 | 1133 |
1134 } // namespace compiler | 1134 } // namespace compiler |
1135 } // namespace internal | 1135 } // namespace internal |
1136 } // namespace v8 | 1136 } // namespace v8 |
OLD | NEW |