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 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1384 void BytecodeGraphBuilder::VisitJumpIfUndefinedConstant() { | 1384 void BytecodeGraphBuilder::VisitJumpIfUndefinedConstant() { |
1385 BuildJumpIfEqual(jsgraph()->UndefinedConstant()); | 1385 BuildJumpIfEqual(jsgraph()->UndefinedConstant()); |
1386 } | 1386 } |
1387 | 1387 |
1388 void BytecodeGraphBuilder::VisitStackCheck() { | 1388 void BytecodeGraphBuilder::VisitStackCheck() { |
1389 FrameStateBeforeAndAfter states(this); | 1389 FrameStateBeforeAndAfter states(this); |
1390 Node* node = NewNode(javascript()->StackCheck()); | 1390 Node* node = NewNode(javascript()->StackCheck()); |
1391 environment()->RecordAfterState(node, &states); | 1391 environment()->RecordAfterState(node, &states); |
1392 } | 1392 } |
1393 | 1393 |
| 1394 void BytecodeGraphBuilder::VisitOsrPoll() { |
| 1395 // TODO(4764): Implement OSR graph construction. Not marked UNIMPLEMENTED to |
| 1396 // ensure the --ignition-osr flag can already be fuzzed without crashing. |
| 1397 } |
| 1398 |
1394 void BytecodeGraphBuilder::VisitReturn() { | 1399 void BytecodeGraphBuilder::VisitReturn() { |
1395 Node* control = | 1400 Node* control = |
1396 NewNode(common()->Return(), environment()->LookupAccumulator()); | 1401 NewNode(common()->Return(), environment()->LookupAccumulator()); |
1397 MergeControlToLeaveFunction(control); | 1402 MergeControlToLeaveFunction(control); |
1398 } | 1403 } |
1399 | 1404 |
1400 void BytecodeGraphBuilder::VisitDebugger() { | 1405 void BytecodeGraphBuilder::VisitDebugger() { |
1401 FrameStateBeforeAndAfter states(this); | 1406 FrameStateBeforeAndAfter states(this); |
1402 Node* call = | 1407 Node* call = |
1403 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement)); | 1408 NewNode(javascript()->CallRuntime(Runtime::kHandleDebuggerStatement)); |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1786 // Phi does not exist yet, introduce one. | 1791 // Phi does not exist yet, introduce one. |
1787 value = NewPhi(inputs, value, control); | 1792 value = NewPhi(inputs, value, control); |
1788 value->ReplaceInput(inputs - 1, other); | 1793 value->ReplaceInput(inputs - 1, other); |
1789 } | 1794 } |
1790 return value; | 1795 return value; |
1791 } | 1796 } |
1792 | 1797 |
1793 } // namespace compiler | 1798 } // namespace compiler |
1794 } // namespace internal | 1799 } // namespace internal |
1795 } // namespace v8 | 1800 } // namespace v8 |
OLD | NEW |