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 504a05c21d3afddbe05b8a1d28e4ebc3330db397..2c1f1c9ddcfe88be49df022d0d24f17fc496f40e 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -69,10 +69,10 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreGlobal(name, 1, LanguageMode::STRICT); |
// Emit context operations. |
- builder.PushContext(reg); |
- builder.PopContext(reg); |
- builder.LoadContextSlot(reg, 1); |
- builder.StoreContextSlot(reg, 1); |
+ builder.PushContext(reg) |
+ .PopContext(reg) |
+ .LoadContextSlot(reg, 1) |
+ .StoreContextSlot(reg, 1); |
// Emit load / store property operations. |
builder.LoadNamedProperty(reg, name, 0, LanguageMode::SLOPPY) |
@@ -241,6 +241,10 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.StoreNamedProperty(reg, wide_name, 0, LanguageMode::STRICT) |
.StoreKeyedProperty(reg, reg, 2056, LanguageMode::STRICT); |
+ // Emit wide context operations. |
+ builder.LoadContextSlot(reg, 1024) |
+ .StoreContextSlot(reg, 1024); |
+ |
// Emit wide load / store lookup slots. |
builder.LoadLookupSlot(wide_name, TypeofMode::NOT_INSIDE_TYPEOF) |
.LoadLookupSlot(wide_name, TypeofMode::INSIDE_TYPEOF) |