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/interpreter/bytecode-array-builder.h" | 5 #include "src/interpreter/bytecode-array-builder.h" |
6 | 6 |
7 #include "src/globals.h" | 7 #include "src/globals.h" |
8 #include "src/interpreter/bytecode-array-writer.h" | 8 #include "src/interpreter/bytecode-array-writer.h" |
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" | 9 #include "src/interpreter/bytecode-dead-code-optimizer.h" |
10 #include "src/interpreter/bytecode-label.h" | 10 #include "src/interpreter/bytecode-label.h" |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 // A Nop could be inserted for empty statements, but since no code | 735 // A Nop could be inserted for empty statements, but since no code |
736 // is associated with these positions, instead we force the stack | 736 // is associated with these positions, instead we force the stack |
737 // check's expression position which eliminates the empty | 737 // check's expression position which eliminates the empty |
738 // statement's position. | 738 // statement's position. |
739 latest_source_info_.ForceExpressionPosition(position); | 739 latest_source_info_.ForceExpressionPosition(position); |
740 } | 740 } |
741 OutputStackCheck(); | 741 OutputStackCheck(); |
742 return *this; | 742 return *this; |
743 } | 743 } |
744 | 744 |
| 745 BytecodeArrayBuilder& BytecodeArrayBuilder::SetPendingMessage() { |
| 746 OutputSetPendingMessage(); |
| 747 return *this; |
| 748 } |
| 749 |
745 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { | 750 BytecodeArrayBuilder& BytecodeArrayBuilder::Throw() { |
746 OutputThrow(); | 751 OutputThrow(); |
747 return *this; | 752 return *this; |
748 } | 753 } |
749 | 754 |
750 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { | 755 BytecodeArrayBuilder& BytecodeArrayBuilder::ReThrow() { |
751 OutputReThrow(); | 756 OutputReThrow(); |
752 return *this; | 757 return *this; |
753 } | 758 } |
754 | 759 |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 RegisterList reg_list) { | 1008 RegisterList reg_list) { |
1004 DCHECK(RegisterListIsValid(reg_list)); | 1009 DCHECK(RegisterListIsValid(reg_list)); |
1005 if (register_optimizer_) | 1010 if (register_optimizer_) |
1006 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1011 register_optimizer_->PrepareOutputRegisterList(reg_list); |
1007 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1012 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
1008 } | 1013 } |
1009 | 1014 |
1010 } // namespace interpreter | 1015 } // namespace interpreter |
1011 } // namespace internal | 1016 } // namespace internal |
1012 } // namespace v8 | 1017 } // namespace v8 |
OLD | NEW |