Index: test/unittests/compiler/interpreter-assembler-unittest.cc |
diff --git a/test/unittests/compiler/interpreter-assembler-unittest.cc b/test/unittests/compiler/interpreter-assembler-unittest.cc |
index 36827f7351109771102dbaeaa6213bf1bb945707..763fbbe04e946e29ba9befd02fd6100def56a233 100644 |
--- a/test/unittests/compiler/interpreter-assembler-unittest.cc |
+++ b/test/unittests/compiler/interpreter-assembler-unittest.cc |
@@ -409,6 +409,16 @@ TARGET_TEST_F(InterpreterAssemblerTest, GetSetAccumulator) { |
} |
+TARGET_TEST_F(InterpreterAssemblerTest, GetSetContext) { |
+ TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { |
+ InterpreterAssemblerForTest m(this, bytecode); |
+ Node* context_node = m.Int32Constant(100); |
+ m.SetContext(context_node); |
+ EXPECT_THAT(m.GetContext(), context_node); |
+ } |
+} |
+ |
+ |
TARGET_TEST_F(InterpreterAssemblerTest, RegisterLocation) { |
TRACED_FOREACH(interpreter::Bytecode, bytecode, kBytecodes) { |
InterpreterAssemblerForTest m(this, bytecode); |