Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2471033004: [ignition,modules] Introduce bytecodes for loading/storing module variables. (Closed)
Patch Set: Address other feedback. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 index) {
796 OutputStaModuleVariable(index);
797 return *this;
798 }
799
800 BytecodeArrayBuilder& BytecodeArrayBuilder::LoadModuleVariable(int index) {
801 OutputLdaModuleVariable(index);
802 return *this;
803 }
804
795 BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator( 805 BytecodeArrayBuilder& BytecodeArrayBuilder::SuspendGenerator(
796 Register generator) { 806 Register generator) {
797 OutputSuspendGenerator(generator); 807 OutputSuspendGenerator(generator);
798 return *this; 808 return *this;
799 } 809 }
800 810
801 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator( 811 BytecodeArrayBuilder& BytecodeArrayBuilder::ResumeGenerator(
802 Register generator) { 812 Register generator) {
803 OutputResumeGenerator(generator); 813 OutputResumeGenerator(generator);
804 return *this; 814 return *this;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
993 RegisterList reg_list) { 1003 RegisterList reg_list) {
994 DCHECK(RegisterListIsValid(reg_list)); 1004 DCHECK(RegisterListIsValid(reg_list));
995 if (register_optimizer_) 1005 if (register_optimizer_)
996 register_optimizer_->PrepareOutputRegisterList(reg_list); 1006 register_optimizer_->PrepareOutputRegisterList(reg_list);
997 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1007 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
998 } 1008 }
999 1009
1000 } // namespace interpreter 1010 } // namespace interpreter
1001 } // namespace internal 1011 } // namespace internal
1002 } // namespace v8 1012 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698