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

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

Issue 1902823002: [ignition] Inline the binary op TurboFan code stubs in the bytecode handlers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update Created 4 years, 8 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/compiler/register-allocator-verifier.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 // Clients of this interface shouldn't depend on lots of interpreter internals. 8 // Clients of this interface shouldn't depend on lots of interpreter internals.
9 // Do not include anything from src/interpreter other than 9 // Do not include anything from src/interpreter other than
10 // src/interpreter/bytecodes.h here! 10 // src/interpreter/bytecodes.h here!
11 #include "src/base/macros.h" 11 #include "src/base/macros.h"
12 #include "src/builtins.h" 12 #include "src/builtins.h"
13 #include "src/interpreter/bytecodes.h" 13 #include "src/interpreter/bytecodes.h"
14 #include "src/parsing/token.h" 14 #include "src/parsing/token.h"
15 #include "src/runtime/runtime.h" 15 #include "src/runtime/runtime.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 class Isolate; 20 class Isolate;
21 class Callable; 21 class Callable;
22 class CompilationInfo; 22 class CompilationInfo;
23 23
24 namespace compiler {
25 class Node;
26 } // namespace compiler
27
24 namespace interpreter { 28 namespace interpreter {
25 29
26 class InterpreterAssembler; 30 class InterpreterAssembler;
27 31
28 class Interpreter { 32 class Interpreter {
29 public: 33 public:
30 explicit Interpreter(Isolate* isolate); 34 explicit Interpreter(Isolate* isolate);
31 virtual ~Interpreter() {} 35 virtual ~Interpreter() {}
32 36
33 // Initializes the interpreter dispatch table. 37 // Initializes the interpreter dispatch table.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 70 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
67 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 71 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
68 72
69 // Generates code to perform the binary operations via |callable|. 73 // Generates code to perform the binary operations via |callable|.
70 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler); 74 void DoBinaryOp(Callable callable, InterpreterAssembler* assembler);
71 75
72 // Generates code to perform the binary operations via |function_id|. 76 // Generates code to perform the binary operations via |function_id|.
73 void DoBinaryOp(Runtime::FunctionId function_id, 77 void DoBinaryOp(Runtime::FunctionId function_id,
74 InterpreterAssembler* assembler); 78 InterpreterAssembler* assembler);
75 79
80 // Generates code to perform the binary operations via |Generator|.
81 template <class Generator>
82 void DoBinaryOp(InterpreterAssembler* assembler);
83
76 // Generates code to perform the count operations via |function_id|. 84 // Generates code to perform the count operations via |function_id|.
77 void DoCountOp(Runtime::FunctionId function_id, 85 void DoCountOp(Runtime::FunctionId function_id,
78 InterpreterAssembler* assembler); 86 InterpreterAssembler* assembler);
79 87
80 // Generates code to perform the comparison operation associated with 88 // Generates code to perform the comparison operation associated with
81 // |compare_op|. 89 // |compare_op|.
82 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); 90 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler);
83 91
84 // Generates code to load a constant from the constant pool. 92 // Generates code to load a constant from the constant pool.
85 void DoLoadConstant(InterpreterAssembler* assembler); 93 void DoLoadConstant(InterpreterAssembler* assembler);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_; 158 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_count_table_;
151 159
152 DISALLOW_COPY_AND_ASSIGN(Interpreter); 160 DISALLOW_COPY_AND_ASSIGN(Interpreter);
153 }; 161 };
154 162
155 } // namespace interpreter 163 } // namespace interpreter
156 } // namespace internal 164 } // namespace internal
157 } // namespace v8 165 } // namespace v8
158 166
159 #endif // V8_INTERPRETER_INTERPRETER_H_ 167 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/compiler/register-allocator-verifier.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698