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

Side by Side Diff: src/interpreter/interpreter.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/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter.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_INTERPRETER_INTERPRETER_H_
6 #define V8_INTERPRETER_INTERPRETER_H_
7
8 // Clients of this interface shouldn't depend on lots of interpreter internals.
9 // Do not include anything from src/interpreter other than
10 // src/interpreter/bytecodes.h here!
11 #include "src/base/macros.h"
12 #include "src/interpreter/bytecodes.h"
13
14 namespace v8 {
15 namespace internal {
16
17 class Isolate;
18 class CompilationInfo;
19
20 namespace compiler {
21 class InterpreterAssembler;
22 }
23
24 namespace interpreter {
25
26 class Interpreter {
27 public:
28 explicit Interpreter(Isolate* isolate);
29 virtual ~Interpreter() {}
30
31 void Initialize(bool create_heap_objects);
32
33 private:
34 // Bytecode handler generator functions.
35 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, _) \
36 void Do##Name(compiler::InterpreterAssembler* assembler);
37 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
38 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
39
40 Isolate* isolate_;
41
42 DISALLOW_COPY_AND_ASSIGN(Interpreter);
43 };
44
45 } // namespace interpreter
46 } // namespace internal
47 } // namespace v8
48
49 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecodes.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698