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

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

Issue 2221833002: [Interpreter] Collect type feedback for subtract operation and pass it to turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments from Ross. Created 4 years, 4 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/globals.h ('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.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Bytecode handler generator functions. 72 // Bytecode handler generator functions.
73 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ 73 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \
74 void Do##Name(InterpreterAssembler* assembler); 74 void Do##Name(InterpreterAssembler* assembler);
75 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 75 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
76 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 76 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
77 77
78 // Generates code to perform the binary operation via |Generator|. 78 // Generates code to perform the binary operation via |Generator|.
79 template <class Generator> 79 template <class Generator>
80 void DoBinaryOp(InterpreterAssembler* assembler); 80 void DoBinaryOp(InterpreterAssembler* assembler);
81 81
82 // Generates code to perform the binary operation via |Generator|.
83 template <class Generator>
84 void DoBinaryOpWithFeedback(InterpreterAssembler* assembler);
85
82 // Generates code to perform the binary operation via |Generator| using 86 // Generates code to perform the binary operation via |Generator| using
83 // an immediate value rather the accumulator as the rhs operand. 87 // an immediate value rather the accumulator as the rhs operand.
84 template <class Generator> 88 template <class Generator>
85 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); 89 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler);
86 90
87 // Generates code to perform the unary operation via |Generator|. 91 // Generates code to perform the unary operation via |Generator|.
88 template <class Generator> 92 template <class Generator>
89 void DoUnaryOp(InterpreterAssembler* assembler); 93 void DoUnaryOp(InterpreterAssembler* assembler);
90 94
91 // Generates code to perform the comparison operation associated with 95 // Generates code to perform the comparison operation associated with
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 179 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
176 180
177 DISALLOW_COPY_AND_ASSIGN(Interpreter); 181 DISALLOW_COPY_AND_ASSIGN(Interpreter);
178 }; 182 };
179 183
180 } // namespace interpreter 184 } // namespace interpreter
181 } // namespace internal 185 } // namespace internal
182 } // namespace v8 186 } // namespace v8
183 187
184 #endif // V8_INTERPRETER_INTERPRETER_H_ 188 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698