OLD | NEW |
1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/bytecode-graph-builder.h" | 5 #include "src/compiler/bytecode-graph-builder.h" |
6 | 6 |
7 #include "src/compiler/bytecode-branch-analysis.h" | 7 #include "src/compiler/bytecode-branch-analysis.h" |
8 #include "src/compiler/linkage.h" | 8 #include "src/compiler/linkage.h" |
9 #include "src/compiler/operator-properties.h" | 9 #include "src/compiler/operator-properties.h" |
10 #include "src/interpreter/bytecodes.h" | 10 #include "src/interpreter/bytecodes.h" |
(...skipping 1371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1382 void BytecodeGraphBuilder::VisitExtraWide() { | 1382 void BytecodeGraphBuilder::VisitExtraWide() { |
1383 // Consumed by the BytecodeArrayIterator. | 1383 // Consumed by the BytecodeArrayIterator. |
1384 UNREACHABLE(); | 1384 UNREACHABLE(); |
1385 } | 1385 } |
1386 | 1386 |
1387 void BytecodeGraphBuilder::VisitIllegal() { | 1387 void BytecodeGraphBuilder::VisitIllegal() { |
1388 // Never present in valid bytecode. | 1388 // Never present in valid bytecode. |
1389 UNREACHABLE(); | 1389 UNREACHABLE(); |
1390 } | 1390 } |
1391 | 1391 |
| 1392 void BytecodeGraphBuilder::VisitNop() {} |
| 1393 |
1392 void BytecodeGraphBuilder::SwitchToMergeEnvironment(int current_offset) { | 1394 void BytecodeGraphBuilder::SwitchToMergeEnvironment(int current_offset) { |
1393 if (merge_environments_[current_offset] != nullptr) { | 1395 if (merge_environments_[current_offset] != nullptr) { |
1394 if (environment() != nullptr) { | 1396 if (environment() != nullptr) { |
1395 merge_environments_[current_offset]->Merge(environment()); | 1397 merge_environments_[current_offset]->Merge(environment()); |
1396 } | 1398 } |
1397 set_environment(merge_environments_[current_offset]); | 1399 set_environment(merge_environments_[current_offset]); |
1398 } | 1400 } |
1399 } | 1401 } |
1400 | 1402 |
1401 void BytecodeGraphBuilder::BuildLoopHeaderEnvironment(int current_offset) { | 1403 void BytecodeGraphBuilder::BuildLoopHeaderEnvironment(int current_offset) { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1654 // Phi does not exist yet, introduce one. | 1656 // Phi does not exist yet, introduce one. |
1655 value = NewPhi(inputs, value, control); | 1657 value = NewPhi(inputs, value, control); |
1656 value->ReplaceInput(inputs - 1, other); | 1658 value->ReplaceInput(inputs - 1, other); |
1657 } | 1659 } |
1658 return value; | 1660 return value; |
1659 } | 1661 } |
1660 | 1662 |
1661 } // namespace compiler | 1663 } // namespace compiler |
1662 } // namespace internal | 1664 } // namespace internal |
1663 } // namespace v8 | 1665 } // namespace v8 |
OLD | NEW |