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

Side by Side Diff: test/unittests/compiler/interpreter-assembler-unittest.h

Issue 1239793002: [interpreter] Add basic framework for bytecode handler code generation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix GN for realz Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/isolate.cc ('k') | test/unittests/compiler/interpreter-assembler-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_UNITTESTS_COMPILER_INTERPRETER_ASSEMBLER_UNITTEST_H_
6 #define V8_UNITTESTS_COMPILER_INTERPRETER_ASSEMBLER_UNITTEST_H_
7
8 #include "src/compiler/interpreter-assembler.h"
9 #include "src/compiler/linkage.h"
10 #include "src/compiler/machine-operator.h"
11 #include "test/unittests/test-utils.h"
12 #include "testing/gmock-support.h"
13
14 namespace v8 {
15 namespace internal {
16 namespace compiler {
17
18 using ::testing::Matcher;
19
20 class InterpreterAssemblerTest : public TestWithIsolateAndZone {
21 public:
22 InterpreterAssemblerTest() {}
23 ~InterpreterAssemblerTest() override {}
24
25 class InterpreterAssemblerForTest final : public InterpreterAssembler {
26 public:
27 InterpreterAssemblerForTest(InterpreterAssemblerTest* test,
28 interpreter::Bytecode bytecode)
29 : InterpreterAssembler(test->isolate(), test->zone(), bytecode) {}
30 ~InterpreterAssemblerForTest() override {}
31
32 Graph* GetCompletedGraph();
33
34 Matcher<Node*> IsLoad(const Matcher<LoadRepresentation>& rep_matcher,
35 const Matcher<Node*>& base_matcher,
36 const Matcher<Node*>& index_matcher);
37 Matcher<Node*> IsStore(const Matcher<StoreRepresentation>& rep_matcher,
38 const Matcher<Node*>& base_matcher,
39 const Matcher<Node*>& index_matcher,
40 const Matcher<Node*>& value_matcher);
41
42 using InterpreterAssembler::call_descriptor;
43 using InterpreterAssembler::graph;
44 using InterpreterAssembler::kMaxRegisterIndex;
45 using InterpreterAssembler::kFirstRegisterOffsetFromFp;
46
47 private:
48 DISALLOW_COPY_AND_ASSIGN(InterpreterAssemblerForTest);
49 };
50 };
51
52 } // namespace compiler
53 } // namespace internal
54 } // namespace v8
55
56 #endif // V8_UNITTESTS_COMPILER_INTERPRETER_ASSEMBLER_UNITTEST_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | test/unittests/compiler/interpreter-assembler-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698