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

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

Issue 2372113004: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Merge branch 'master' of https://chromium.googlesource.com/v8/v8 into builtins Created 4 years, 2 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
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 private: 72 private:
73 // Bytecode handler generator functions. 73 // Bytecode handler generator functions.
74 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \ 74 #define DECLARE_BYTECODE_HANDLER_GENERATOR(Name, ...) \
75 void Do##Name(InterpreterAssembler* assembler); 75 void Do##Name(InterpreterAssembler* assembler);
76 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR) 76 BYTECODE_LIST(DECLARE_BYTECODE_HANDLER_GENERATOR)
77 #undef DECLARE_BYTECODE_HANDLER_GENERATOR 77 #undef DECLARE_BYTECODE_HANDLER_GENERATOR
78 78
79 // Generates code to perform the binary operation via |Generator|. 79 // Generates code to perform the binary operation via |Generator|.
80 template <class Generator> 80 template <class Generator>
81 void DoBinaryOp(InterpreterAssembler* assembler);
82
83 // Generates code to perform the binary operation via |Generator|.
84 template <class Generator>
85 void DoBinaryOpWithFeedback(InterpreterAssembler* assembler); 81 void DoBinaryOpWithFeedback(InterpreterAssembler* assembler);
86 82
87 // Generates code to perform the comparison via |Generator| while gathering 83 // Generates code to perform the comparison via |Generator| while gathering
88 // type feedback. 84 // type feedback.
89 template <class Generator> 85 void DoCompareOpWithFeedback(Token::Value compare_op,
90 void DoCompareOpWithFeedback(InterpreterAssembler* assembler); 86 InterpreterAssembler* assembler);
91 87
92 // Generates code to perform the bitwise binary operation corresponding to 88 // Generates code to perform the bitwise binary operation corresponding to
93 // |bitwise_op| while gathering type feedback. 89 // |bitwise_op| while gathering type feedback.
94 void DoBitwiseBinaryOp(Token::Value bitwise_op, 90 void DoBitwiseBinaryOp(Token::Value bitwise_op,
95 InterpreterAssembler* assembler); 91 InterpreterAssembler* assembler);
96 92
97 // Generates code to perform the binary operation via |Generator| using 93 // Generates code to perform the binary operation via |Generator| using
98 // an immediate value rather the accumulator as the rhs operand. 94 // an immediate value rather the accumulator as the rhs operand.
99 template <class Generator> 95 template <class Generator>
100 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler); 96 void DoBinaryOpWithImmediate(InterpreterAssembler* assembler);
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 189 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
194 190
195 DISALLOW_COPY_AND_ASSIGN(Interpreter); 191 DISALLOW_COPY_AND_ASSIGN(Interpreter);
196 }; 192 };
197 193
198 } // namespace interpreter 194 } // namespace interpreter
199 } // namespace internal 195 } // namespace internal
200 } // namespace v8 196 } // namespace v8
201 197
202 #endif // V8_INTERPRETER_INTERPRETER_H_ 198 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698