Index: src/compiler/js-operator.cc |
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc |
index d39f8cdac57c4a0530064297013d30ae17e79516..0e1d0023812177ade43e8e584ac6c200bdb933eb 100644 |
--- a/src/compiler/js-operator.cc |
+++ b/src/compiler/js-operator.cc |
@@ -765,6 +765,23 @@ const Operator* JSOperatorBuilder::StoreContext(size_t depth, size_t index) { |
access); // parameter |
} |
+const Operator* JSOperatorBuilder::LoadModule(int32_t cell_index) { |
+ return new (zone()) Operator1<int32_t>( // -- |
+ IrOpcode::kJSLoadModule, // opcode |
+ Operator::kNoWrite | Operator::kNoThrow, // flags |
+ "JSLoadModule", // name |
+ 1, 1, 1, 1, 1, 0, // counts |
+ cell_index); // parameter |
+} |
+ |
+const Operator* JSOperatorBuilder::StoreModule(int32_t cell_index) { |
+ return new (zone()) Operator1<int32_t>( // -- |
+ IrOpcode::kJSStoreModule, // opcode |
+ Operator::kNoRead | Operator::kNoThrow, // flags |
+ "JSStoreModule", // name |
+ 2, 1, 1, 0, 1, 0, // counts |
+ cell_index); // parameter |
+} |
const Operator* JSOperatorBuilder::CreateArguments(CreateArgumentsType type) { |
return new (zone()) Operator1<CreateArgumentsType>( // -- |