Index: test/unittests/compiler/interpreter-assembler-unittest.h |
diff --git a/test/unittests/compiler/interpreter-assembler-unittest.h b/test/unittests/compiler/interpreter-assembler-unittest.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..30064415cd18fffc2241f8fa8f2b85729b1340a9 |
--- /dev/null |
+++ b/test/unittests/compiler/interpreter-assembler-unittest.h |
@@ -0,0 +1,56 @@ |
+// Copyright 2015 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef V8_UNITTESTS_COMPILER_INTERPRETER_ASSEMBLER_UNITTEST_H_ |
+#define V8_UNITTESTS_COMPILER_INTERPRETER_ASSEMBLER_UNITTEST_H_ |
+ |
+#include "src/compiler/interpreter-assembler.h" |
+#include "src/compiler/linkage.h" |
+#include "src/compiler/machine-operator.h" |
+#include "test/unittests/test-utils.h" |
+#include "testing/gmock-support.h" |
+ |
+namespace v8 { |
+namespace internal { |
+namespace compiler { |
+ |
+using ::testing::Matcher; |
+ |
+class InterpreterAssemblerTest : public TestWithIsolateAndZone { |
+ public: |
+ InterpreterAssemblerTest() {} |
+ ~InterpreterAssemblerTest() override {} |
+ |
+ class InterpreterAssemblerForTest final : public InterpreterAssembler { |
+ public: |
+ InterpreterAssemblerForTest(InterpreterAssemblerTest* test, |
+ interpreter::Bytecode bytecode) |
+ : InterpreterAssembler(test->isolate(), test->zone(), bytecode) {} |
+ ~InterpreterAssemblerForTest() override {} |
+ |
+ Graph* GetCompletedGraph(); |
+ |
+ Matcher<Node*> IsLoad(const Matcher<LoadRepresentation>& rep_matcher, |
+ const Matcher<Node*>& base_matcher, |
+ const Matcher<Node*>& index_matcher); |
+ Matcher<Node*> IsStore(const Matcher<StoreRepresentation>& rep_matcher, |
+ const Matcher<Node*>& base_matcher, |
+ const Matcher<Node*>& index_matcher, |
+ const Matcher<Node*>& value_matcher); |
+ |
+ using InterpreterAssembler::call_descriptor; |
+ using InterpreterAssembler::graph; |
+ using InterpreterAssembler::kMaxRegisterIndex; |
+ using InterpreterAssembler::kFirstRegisterOffsetFromFp; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(InterpreterAssemblerForTest); |
+ }; |
+}; |
+ |
+} // namespace compiler |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_UNITTESTS_COMPILER_INTERPRETER_ASSEMBLER_UNITTEST_H_ |