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

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: Review comments. 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
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 #include "src/base/macros.h"
9 #include "src/interpreter/bytecodes.h"
10
11 namespace v8 {
12 namespace internal {
13
14 class Isolate;
15 class CompilationInfo;
16
17 namespace compiler {
18 class InterpreterAssembler;
19 }
20
21 namespace interpreter {
22
23 class Interpreter {
24 public:
25 Interpreter();
26 virtual ~Interpreter() {}
27
28 void Initialize(Isolate* isolate, bool create_heap_objects);
29
30 private:
31 // Bytecode handler generator functions.
32 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, _) \
33 void Do##Name(compiler::InterpreterAssembler* assembler);
34 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
35 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
36
37 DISALLOW_COPY_AND_ASSIGN(Interpreter);
38 };
39
40 } // namespace interpreter
41 } // namespace internal
42 } // namespace v8
43
44 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698