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

Unified Diff: test/unittests/interpreter/bytecode-array-builder-unittest.cc

Issue 2679953003: Reland of Thread maybe-assigned through the bytecodes. (Closed)
Patch Set: Created 3 years, 10 months 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 | « test/mjsunit/immutable-context-slot-inlining.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 98b90bb7e24b853e033082555b7380cddc22109b..2ef43c4c33abda256338364e92c18f0dbc3d3c73 100644
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc
@@ -86,12 +86,19 @@
// Emit context operations.
builder.PushContext(reg)
.PopContext(reg)
- .LoadContextSlot(reg, 1, 0)
- .StoreContextSlot(reg, 1, 0);
+ .LoadContextSlot(reg, 1, 0, BytecodeArrayBuilder::kMutableSlot)
+ .StoreContextSlot(reg, 1, 0)
+ .LoadContextSlot(reg, 2, 0, BytecodeArrayBuilder::kImmutableSlot)
+ .StoreContextSlot(reg, 3, 0);
// Emit context operations which operate on the local context.
- builder.LoadContextSlot(Register::current_context(), 1, 0)
- .StoreContextSlot(Register::current_context(), 1, 0);
+ builder
+ .LoadContextSlot(Register::current_context(), 1, 0,
+ BytecodeArrayBuilder::kMutableSlot)
+ .StoreContextSlot(Register::current_context(), 1, 0)
+ .LoadContextSlot(Register::current_context(), 2, 0,
+ BytecodeArrayBuilder::kImmutableSlot)
+ .StoreContextSlot(Register::current_context(), 3, 0);
// Emit load / store property operations.
builder.LoadNamedProperty(reg, name, 0)
@@ -327,7 +334,8 @@
DataPropertyInLiteralFlag::kNoFlags, 0);
// Emit wide context operations.
- builder.LoadContextSlot(reg, 1024, 0).StoreContextSlot(reg, 1024, 0);
+ builder.LoadContextSlot(reg, 1024, 0, BytecodeArrayBuilder::kMutableSlot)
+ .StoreContextSlot(reg, 1024, 0);
// Emit wide load / store lookup slots.
builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF)
« no previous file with comments | « test/mjsunit/immutable-context-slot-inlining.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698