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 d4f4a94ce4f3b3a6a91a1c84c927d5d2d5d49c7d..acc7393a4f02b2324ef2359ed61d7725ad67ac45 100644 |
--- a/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
+++ b/test/unittests/interpreter/bytecode-array-builder-unittest.cc |
@@ -22,12 +22,12 @@ class BytecodeArrayBuilderTest : public TestWithIsolateAndZone { |
TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
BytecodeArrayBuilder builder(isolate(), zone()); |
- builder.set_locals_count(1); |
+ builder.set_locals_count(2); |
builder.set_context_count(1); |
builder.set_parameter_count(0); |
- CHECK_EQ(builder.locals_count(), 1); |
+ CHECK_EQ(builder.locals_count(), 2); |
CHECK_EQ(builder.context_count(), 1); |
- CHECK_EQ(builder.fixed_register_count(), 2); |
+ CHECK_EQ(builder.fixed_register_count(), 3); |
// Emit constant loads. |
builder.LoadLiteral(Smi::FromInt(0)) |
@@ -46,6 +46,10 @@ TEST_F(BytecodeArrayBuilderTest, AllBytecodesGenerated) { |
.LoadNull() |
.StoreAccumulatorInRegister(reg); |
+ // Emit register-register transfer. |
+ Register other(1); |
+ builder.MoveRegister(reg, other); |
+ |
// Emit global load / store operations. |
builder.LoadGlobal(0, 1, LanguageMode::SLOPPY, TypeofMode::NOT_INSIDE_TYPEOF) |
.LoadGlobal(0, 1, LanguageMode::STRICT, TypeofMode::NOT_INSIDE_TYPEOF) |