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 1405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1416 void BytecodeGraphBuilder::VisitExtraWide() { | 1416 void BytecodeGraphBuilder::VisitExtraWide() { |
1417 // Consumed by the BytecodeArrayIterator. | 1417 // Consumed by the BytecodeArrayIterator. |
1418 UNREACHABLE(); | 1418 UNREACHABLE(); |
1419 } | 1419 } |
1420 | 1420 |
1421 void BytecodeGraphBuilder::VisitIllegal() { | 1421 void BytecodeGraphBuilder::VisitIllegal() { |
1422 NewNode(javascript()->CallRuntime(Runtime::kAbort), | 1422 NewNode(javascript()->CallRuntime(Runtime::kAbort), |
1423 jsgraph()->Constant(kIllegalBytecode)); | 1423 jsgraph()->Constant(kIllegalBytecode)); |
1424 } | 1424 } |
1425 | 1425 |
| 1426 void BytecodeGraphBuilder::VisitNop() {} |
| 1427 |
1426 void BytecodeGraphBuilder::SwitchToMergeEnvironment(int current_offset) { | 1428 void BytecodeGraphBuilder::SwitchToMergeEnvironment(int current_offset) { |
1427 if (merge_environments_[current_offset] != nullptr) { | 1429 if (merge_environments_[current_offset] != nullptr) { |
1428 if (environment() != nullptr) { | 1430 if (environment() != nullptr) { |
1429 merge_environments_[current_offset]->Merge(environment()); | 1431 merge_environments_[current_offset]->Merge(environment()); |
1430 } | 1432 } |
1431 set_environment(merge_environments_[current_offset]); | 1433 set_environment(merge_environments_[current_offset]); |
1432 } | 1434 } |
1433 } | 1435 } |
1434 | 1436 |
1435 void BytecodeGraphBuilder::BuildLoopHeaderEnvironment(int current_offset) { | 1437 void BytecodeGraphBuilder::BuildLoopHeaderEnvironment(int current_offset) { |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1688 // Phi does not exist yet, introduce one. | 1690 // Phi does not exist yet, introduce one. |
1689 value = NewPhi(inputs, value, control); | 1691 value = NewPhi(inputs, value, control); |
1690 value->ReplaceInput(inputs - 1, other); | 1692 value->ReplaceInput(inputs - 1, other); |
1691 } | 1693 } |
1692 return value; | 1694 return value; |
1693 } | 1695 } |
1694 | 1696 |
1695 } // namespace compiler | 1697 } // namespace compiler |
1696 } // namespace internal | 1698 } // namespace internal |
1697 } // namespace v8 | 1699 } // namespace v8 |
OLD | NEW |