| 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/linkage.h" | 7 #include "src/compiler/linkage.h" |
| 8 #include "src/compiler/operator-properties.h" | 8 #include "src/compiler/operator-properties.h" |
| 9 #include "src/interpreter/bytecode-array-iterator.h" | 9 #include "src/interpreter/bytecode-array-iterator.h" |
| 10 | 10 |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 UNIMPLEMENTED(); | 595 UNIMPLEMENTED(); |
| 596 } | 596 } |
| 597 | 597 |
| 598 | 598 |
| 599 void BytecodeGraphBuilder::VisitToNumber( | 599 void BytecodeGraphBuilder::VisitToNumber( |
| 600 const interpreter::BytecodeArrayIterator& iterator) { | 600 const interpreter::BytecodeArrayIterator& iterator) { |
| 601 UNIMPLEMENTED(); | 601 UNIMPLEMENTED(); |
| 602 } | 602 } |
| 603 | 603 |
| 604 | 604 |
| 605 void BytecodeGraphBuilder::VisitToObject( |
| 606 const interpreter::BytecodeArrayIterator& iterator) { |
| 607 UNIMPLEMENTED(); |
| 608 } |
| 609 |
| 610 |
| 605 void BytecodeGraphBuilder::VisitJump( | 611 void BytecodeGraphBuilder::VisitJump( |
| 606 const interpreter::BytecodeArrayIterator& iterator) { | 612 const interpreter::BytecodeArrayIterator& iterator) { |
| 607 UNIMPLEMENTED(); | 613 UNIMPLEMENTED(); |
| 608 } | 614 } |
| 609 | 615 |
| 610 | 616 |
| 611 void BytecodeGraphBuilder::VisitJumpConstant( | 617 void BytecodeGraphBuilder::VisitJumpConstant( |
| 612 const interpreter::BytecodeArrayIterator& iterator) { | 618 const interpreter::BytecodeArrayIterator& iterator) { |
| 613 UNIMPLEMENTED(); | 619 UNIMPLEMENTED(); |
| 614 } | 620 } |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 655 UNIMPLEMENTED(); | 661 UNIMPLEMENTED(); |
| 656 } | 662 } |
| 657 | 663 |
| 658 | 664 |
| 659 void BytecodeGraphBuilder::VisitJumpIfToBooleanFalseConstant( | 665 void BytecodeGraphBuilder::VisitJumpIfToBooleanFalseConstant( |
| 660 const interpreter::BytecodeArrayIterator& iterator) { | 666 const interpreter::BytecodeArrayIterator& iterator) { |
| 661 UNIMPLEMENTED(); | 667 UNIMPLEMENTED(); |
| 662 } | 668 } |
| 663 | 669 |
| 664 | 670 |
| 671 void BytecodeGraphBuilder::VisitJumpIfNull( |
| 672 const interpreter::BytecodeArrayIterator& iterator) { |
| 673 UNIMPLEMENTED(); |
| 674 } |
| 675 |
| 676 |
| 677 void BytecodeGraphBuilder::VisitJumpIfNullConstant( |
| 678 const interpreter::BytecodeArrayIterator& iterator) { |
| 679 UNIMPLEMENTED(); |
| 680 } |
| 681 |
| 682 |
| 683 void BytecodeGraphBuilder::VisitJumpIfUndefined( |
| 684 const interpreter::BytecodeArrayIterator& iterator) { |
| 685 UNIMPLEMENTED(); |
| 686 } |
| 687 |
| 688 |
| 689 void BytecodeGraphBuilder::VisitJumpIfUndefinedConstant( |
| 690 const interpreter::BytecodeArrayIterator& iterator) { |
| 691 UNIMPLEMENTED(); |
| 692 } |
| 693 |
| 694 |
| 665 void BytecodeGraphBuilder::VisitReturn( | 695 void BytecodeGraphBuilder::VisitReturn( |
| 666 const interpreter::BytecodeArrayIterator& iterator) { | 696 const interpreter::BytecodeArrayIterator& iterator) { |
| 667 Node* control = | 697 Node* control = |
| 668 NewNode(common()->Return(), environment()->LookupAccumulator()); | 698 NewNode(common()->Return(), environment()->LookupAccumulator()); |
| 669 UpdateControlDependencyToLeaveFunction(control); | 699 UpdateControlDependencyToLeaveFunction(control); |
| 670 } | 700 } |
| 671 | 701 |
| 672 | 702 |
| 703 void BytecodeGraphBuilder::VisitForInPrepare( |
| 704 const interpreter::BytecodeArrayIterator& iterator) { |
| 705 UNIMPLEMENTED(); |
| 706 } |
| 707 |
| 708 |
| 709 void BytecodeGraphBuilder::VisitForInNext( |
| 710 const interpreter::BytecodeArrayIterator& iterator) { |
| 711 UNIMPLEMENTED(); |
| 712 } |
| 713 |
| 714 |
| 715 void BytecodeGraphBuilder::VisitForInDone( |
| 716 const interpreter::BytecodeArrayIterator& iterator) { |
| 717 UNIMPLEMENTED(); |
| 718 } |
| 719 |
| 720 |
| 673 Node** BytecodeGraphBuilder::EnsureInputBufferSize(int size) { | 721 Node** BytecodeGraphBuilder::EnsureInputBufferSize(int size) { |
| 674 if (size > input_buffer_size_) { | 722 if (size > input_buffer_size_) { |
| 675 size = size + kInputBufferSizeIncrement + input_buffer_size_; | 723 size = size + kInputBufferSizeIncrement + input_buffer_size_; |
| 676 input_buffer_ = local_zone()->NewArray<Node*>(size); | 724 input_buffer_ = local_zone()->NewArray<Node*>(size); |
| 677 input_buffer_size_ = size; | 725 input_buffer_size_ = size; |
| 678 } | 726 } |
| 679 return input_buffer_; | 727 return input_buffer_; |
| 680 } | 728 } |
| 681 | 729 |
| 682 | 730 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 814 |
| 767 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { | 815 void BytecodeGraphBuilder::UpdateControlDependencyToLeaveFunction(Node* exit) { |
| 768 if (environment()->IsMarkedAsUnreachable()) return; | 816 if (environment()->IsMarkedAsUnreachable()) return; |
| 769 environment()->MarkAsUnreachable(); | 817 environment()->MarkAsUnreachable(); |
| 770 exit_controls_.push_back(exit); | 818 exit_controls_.push_back(exit); |
| 771 } | 819 } |
| 772 | 820 |
| 773 } // namespace compiler | 821 } // namespace compiler |
| 774 } // namespace internal | 822 } // namespace internal |
| 775 } // namespace v8 | 823 } // namespace v8 |
| OLD | NEW |