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

Unified Diff: src/compiler/js-operator.cc

Issue 2489863003: [compiler,modules] Introduce JS operators for module loads and stores. (Closed)
Patch Set: Remove unused variable. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>( // --
« no previous file with comments | « src/compiler/js-operator.h ('k') | src/compiler/js-typed-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698