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

Unified Diff: test/unittests/interpreter/bytecode-array-builder-unittest.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 side-by-side diff with in-line comments
Download patch
Index: test/unittests/interpreter/bytecode-array-builder-unittest.cc
diff --git a/test/unittests/interpreter/bytecode-array-builder-unittest.cc b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
index 9ce46c4a7534005bc159b731638073b43d36a887..6a5f311108a663f50fcee3990860ad8d392512bd 100644
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
@@ -332,7 +332,15 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) {
.CreateArrayLiteral(factory->NewFixedArray(2), 0, 0)
.CreateObjectLiteral(factory->NewFixedArray(2), 0, 0, reg);
- // Emit generator operations
+ // Emit load and store operations for module variables.
+ builder.LoadModuleVariable(-1)
+ .LoadModuleVariable(0)
+ .LoadModuleVariable(1)
+ .StoreModuleVariable(-1)
+ .StoreModuleVariable(0)
+ .StoreModuleVariable(1);
+
+ // Emit generator operations.
builder.SuspendGenerator(reg)
.ResumeGenerator(reg);

Powered by Google App Engine
This is Rietveld 408576698