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

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

Issue 2684993002: [interpreter] Create custom call opcodes for specific argument counts (Closed)
Patch Set: Latest Created 3 years, 10 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 117
118 // Generates code to perform a named property store via |ic|. 118 // Generates code to perform a named property store via |ic|.
119 void DoStoreIC(Callable ic, InterpreterAssembler* assembler); 119 void DoStoreIC(Callable ic, InterpreterAssembler* assembler);
120 120
121 // Generates code to perform a keyed property store via |ic|. 121 // Generates code to perform a keyed property store via |ic|.
122 void DoKeyedStoreIC(Callable ic, InterpreterAssembler* assembler); 122 void DoKeyedStoreIC(Callable ic, InterpreterAssembler* assembler);
123 123
124 // Generates code to perform a JS call that collects type feedback. 124 // Generates code to perform a JS call that collects type feedback.
125 void DoJSCall(InterpreterAssembler* assembler, TailCallMode tail_call_mode); 125 void DoJSCall(InterpreterAssembler* assembler, TailCallMode tail_call_mode);
126 126
127 // Generates code to perform a JS call that collects type feedback.
rmcilroy 2017/02/17 11:37:19 nit - JS call with a known number of arguments...
danno 2017/02/17 17:18:43 Done.
128 void DoJSCallN(InterpreterAssembler* assembler, int n);
129
127 // Generates code to perform delete via function_id. 130 // Generates code to perform delete via function_id.
128 void DoDelete(Runtime::FunctionId function_id, 131 void DoDelete(Runtime::FunctionId function_id,
129 InterpreterAssembler* assembler); 132 InterpreterAssembler* assembler);
130 133
131 // Generates code to perform a lookup slot load via |function_id|. 134 // Generates code to perform a lookup slot load via |function_id|.
132 void DoLdaLookupSlot(Runtime::FunctionId function_id, 135 void DoLdaLookupSlot(Runtime::FunctionId function_id,
133 InterpreterAssembler* assembler); 136 InterpreterAssembler* assembler);
134 137
135 // Generates code to perform a lookup slot load via |function_id| that can 138 // Generates code to perform a lookup slot load via |function_id| that can
136 // fast path to a context slot load. 139 // fast path to a context slot load.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 185 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
183 186
184 DISALLOW_COPY_AND_ASSIGN(Interpreter); 187 DISALLOW_COPY_AND_ASSIGN(Interpreter);
185 }; 188 };
186 189
187 } // namespace interpreter 190 } // namespace interpreter
188 } // namespace internal 191 } // namespace internal
189 } // namespace v8 192 } // namespace v8
190 193
191 #endif // V8_INTERPRETER_INTERPRETER_H_ 194 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698