| 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 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 785 DCHECK_EQ(2, cache_type_array_pair.register_count()); | 785 DCHECK_EQ(2, cache_type_array_pair.register_count()); |
| 786 OutputForInNext(receiver, index, cache_type_array_pair, feedback_slot); | 786 OutputForInNext(receiver, index, cache_type_array_pair, feedback_slot); |
| 787 return *this; | 787 return *this; |
| 788 } | 788 } |
| 789 | 789 |
| 790 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInStep(Register index) { | 790 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInStep(Register index) { |
| 791 OutputForInStep(index); | 791 OutputForInStep(index); |
| 792 return *this; | 792 return *this; |
| 793 } | 793 } |
| 794 | 794 |
| 795 BytecodeArrayBuilder& BytecodeArrayBuilder::StoreModuleVariable(int cell_index, |
| 796 int depth) { |
| 797 OutputStaModuleVariable(cell_index, depth); |
| 798 return *this; |
| 799 } |
| 800 |
| 801 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadModuleVariable(int cell_index, |
| 802 int depth) { |
| 803 OutputLdaModuleVariable(cell_index, depth); |
| 804 return *this; |
| 805 } |
| 806 |
| 795 BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator( | 807 BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator( |
| 796 Register generator) { | 808 Register generator) { |
| 797 OutputSuspendGenerator(generator); | 809 OutputSuspendGenerator(generator); |
| 798 return *this; | 810 return *this; |
| 799 } | 811 } |
| 800 | 812 |
| 801 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( | 813 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( |
| 802 Register generator) { | 814 Register generator) { |
| 803 OutputResumeGenerator(generator); | 815 OutputResumeGenerator(generator); |
| 804 return *this; | 816 return *this; |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 993 RegisterList reg_list) { | 1005 RegisterList reg_list) { |
| 994 DCHECK(RegisterListIsValid(reg_list)); | 1006 DCHECK(RegisterListIsValid(reg_list)); |
| 995 if (register_optimizer_) | 1007 if (register_optimizer_) |
| 996 register_optimizer_->PrepareOutputRegisterList(reg_list); | 1008 register_optimizer_->PrepareOutputRegisterList(reg_list); |
| 997 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); | 1009 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); |
| 998 } | 1010 } |
| 999 | 1011 |
| 1000 } // namespace interpreter | 1012 } // namespace interpreter |
| 1001 } // namespace internal | 1013 } // namespace internal |
| 1002 } // namespace v8 | 1014 } // namespace v8 |
| OLD | NEW |