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

Side by Side Diff: src/interpreter/interpreter.h

Issue 2251713002: [Compiler] Add compile to CompilerDispatcherJob. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@offheap_compilerdispatcher
Patch Set: Fix tests Created 4 years, 3 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/bytecode-generator.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
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_INTERPRETER_INTERPRETER_H_ 5 #ifndef V8_INTERPRETER_INTERPRETER_H_
6 #define V8_INTERPRETER_INTERPRETER_H_ 6 #define V8_INTERPRETER_INTERPRETER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
11 // Do not include anything from src/interpreter other than 11 // Do not include anything from src/interpreter other than
12 // src/interpreter/bytecodes.h here! 12 // src/interpreter/bytecodes.h here!
13 #include "src/base/macros.h" 13 #include "src/base/macros.h"
14 #include "src/builtins/builtins.h" 14 #include "src/builtins/builtins.h"
15 #include "src/interpreter/bytecodes.h" 15 #include "src/interpreter/bytecodes.h"
16 #include "src/parsing/token.h" 16 #include "src/parsing/token.h"
17 #include "src/runtime/runtime.h" 17 #include "src/runtime/runtime.h"
18 18
19 namespace v8 { 19 namespace v8 {
20 namespace internal { 20 namespace internal {
21 21
22 class Isolate; 22 class Isolate;
23 class Callable; 23 class Callable;
24 class CompilationInfo; 24 class CompilationInfo;
25 class CompilationJob;
25 26
26 namespace compiler { 27 namespace compiler {
27 class Node; 28 class Node;
28 } // namespace compiler 29 } // namespace compiler
29 30
30 namespace interpreter { 31 namespace interpreter {
31 32
32 class InterpreterAssembler; 33 class InterpreterAssembler;
33 34
34 class Interpreter { 35 class Interpreter {
35 public: 36 public:
36 explicit Interpreter(Isolate* isolate); 37 explicit Interpreter(Isolate* isolate);
37 virtual ~Interpreter() {} 38 virtual ~Interpreter() {}
38 39
39 // Initializes the interpreter dispatch table. 40 // Initializes the interpreter dispatch table.
40 void Initialize(); 41 void Initialize();
41 42
42 // Returns the interrupt budget which should be used for the profiler counter. 43 // Returns the interrupt budget which should be used for the profiler counter.
43 static int InterruptBudget(); 44 static int InterruptBudget();
44 45
45 // Generate bytecode for |info|. 46 // Creates a compilation job which will generating bytecode for |info|.
Michael Starzinger 2016/08/25 08:10:56 nit: s/generating/generate/
rmcilroy 2016/08/25 09:49:05 Done.
46 static bool MakeBytecode(CompilationInfo* info); 47 static CompilationJob* NewCompilationJob(CompilationInfo* info);
47 48
48 // Return bytecode handler for |bytecode|. 49 // Return bytecode handler for |bytecode|.
49 Code* GetBytecodeHandler(Bytecode bytecode, OperandScale operand_scale); 50 Code* GetBytecodeHandler(Bytecode bytecode, OperandScale operand_scale);
50 51
51 // GC support. 52 // GC support.
52 void IterateDispatchTable(ObjectVisitor* v); 53 void IterateDispatchTable(ObjectVisitor* v);
53 54
54 // Disassembler support (only useful with ENABLE_DISASSEMBLER defined). 55 // Disassembler support (only useful with ENABLE_DISASSEMBLER defined).
55 void TraceCodegen(Handle<Code> code); 56 void TraceCodegen(Handle<Code> code);
56 const char* LookupNameOfBytecodeHandler(Code* code); 57 const char* LookupNameOfBytecodeHandler(Code* code);
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 190 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(Interpreter); 192 DISALLOW_COPY_AND_ASSIGN(Interpreter);
192 }; 193 };
193 194
194 } // namespace interpreter 195 } // namespace interpreter
195 } // namespace internal 196 } // namespace internal
196 } // namespace v8 197 } // namespace v8
197 198
198 #endif // V8_INTERPRETER_INTERPRETER_H_ 199 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698