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

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

Issue 2372113004: [turbofan] JSGenericLowering mostly uses builtins instead of code stubs now (Closed)
Patch Set: Ross' comments 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
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.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.
(...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);
101 97
102 // Generates code to perform the unary operation via |Generator|.
103 template <class Generator>
104 void DoUnaryOp(InterpreterAssembler* assembler);
105
106 // Generates code to perform the unary operation via |Generator| while 98 // Generates code to perform the unary operation via |Generator| while
107 // gatering type feedback. 99 // gatering type feedback.
108 template <class Generator> 100 template <class Generator>
109 void DoUnaryOpWithFeedback(InterpreterAssembler* assembler); 101 void DoUnaryOpWithFeedback(InterpreterAssembler* assembler);
110 102
111 // Generates code to perform the comparison operation associated with 103 // Generates code to perform the comparison operation associated with
112 // |compare_op|. 104 // |compare_op|.
113 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler); 105 void DoCompareOp(Token::Value compare_op, InterpreterAssembler* assembler);
114 106
115 // Generates code to perform a global store via |ic|. 107 // Generates code to perform a global store via |ic|.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 185 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
194 186
195 DISALLOW_COPY_AND_ASSIGN(Interpreter); 187 DISALLOW_COPY_AND_ASSIGN(Interpreter);
196 }; 188 };
197 189
198 } // namespace interpreter 190 } // namespace interpreter
199 } // namespace internal 191 } // namespace internal
200 } // namespace v8 192 } // namespace v8
201 193
202 #endif // V8_INTERPRETER_INTERPRETER_H_ 194 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/full-codegen/x87/full-codegen-x87.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698