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

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

Issue 2347143002: [interpreter] Add fast path for dynamic global lookups (Closed)
Patch Set: Rebase on master and rebaseline tests Created 4 years, 3 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 delete via function_id. 127 // Generates code to perform delete via function_id.
128 void DoDelete(Runtime::FunctionId function_id, 128 void DoDelete(Runtime::FunctionId function_id,
129 InterpreterAssembler* assembler); 129 InterpreterAssembler* assembler);
130 130
131 // Generates code to perform a lookup slot load via |function_id| by calling
132 // out to the runtime.
133 void DoLdaLookupSlowPath(Runtime::FunctionId function_id,
134 compiler::Node* name_index, compiler::Node* context,
135 InterpreterAssembler* assembler);
136
131 // Generates code to perform a lookup slot load via |function_id|. 137 // Generates code to perform a lookup slot load via |function_id|.
132 void DoLdaLookupSlot(Runtime::FunctionId function_id, 138 void DoLdaLookupSlot(Runtime::FunctionId function_id,
133 InterpreterAssembler* assembler); 139 InterpreterAssembler* assembler);
134 140
135 // Generates code to perform a lookup slot load via |function_id| that can 141 // Generates code to perform a lookup slot load via |function_id| that can
136 // fast path to a context slot load. 142 // fast path to a context slot load.
137 void DoLdaLookupContextSlot(Runtime::FunctionId function_id, 143 void DoLdaLookupContextSlot(Runtime::FunctionId function_id,
138 InterpreterAssembler* assembler); 144 InterpreterAssembler* assembler);
139 145
140 // Generates code to perform a lookup slot store depending on |language_mode|. 146 // Generates code to perform a lookup slot load via |function_id| that can
147 // fast path to a global load
rmcilroy 2016/09/19 09:04:29 fullstop
Leszek Swirski 2016/09/19 10:34:51 Obsolete, function got removed.
148 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id,
149 InterpreterAssembler* assembler);
150
151 // Generates code to perform a lookup slot store depending on
152 // |language_mode|.
141 void DoStaLookupSlot(LanguageMode language_mode, 153 void DoStaLookupSlot(LanguageMode language_mode,
142 InterpreterAssembler* assembler); 154 InterpreterAssembler* assembler);
143 155
144 // Generates code to load a context slot. 156 // Generates code to load a context slot.
145 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); 157 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler);
146 158
147 // Generates code to load a global. 159 // Generates code to load a global.
160 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context,
161 compiler::Node* raw_slot,
162 InterpreterAssembler* assembler);
163
164 // Generates code to load a global.
148 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); 165 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler);
149 166
150 // Generates code to load a named property. 167 // Generates code to load a named property.
151 compiler::Node* BuildLoadNamedProperty(Callable ic, 168 compiler::Node* BuildLoadNamedProperty(Callable ic,
152 InterpreterAssembler* assembler); 169 InterpreterAssembler* assembler);
153 170
154 // Generates code to load a keyed property. 171 // Generates code to load a keyed property.
155 compiler::Node* BuildLoadKeyedProperty(Callable ic, 172 compiler::Node* BuildLoadKeyedProperty(Callable ic,
156 InterpreterAssembler* assembler); 173 InterpreterAssembler* assembler);
157 174
(...skipping 27 matching lines...) Expand all
185 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 202 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
186 203
187 DISALLOW_COPY_AND_ASSIGN(Interpreter); 204 DISALLOW_COPY_AND_ASSIGN(Interpreter);
188 }; 205 };
189 206
190 } // namespace interpreter 207 } // namespace interpreter
191 } // namespace internal 208 } // namespace internal
192 } // namespace v8 209 } // namespace v8
193 210
194 #endif // V8_INTERPRETER_INTERPRETER_H_ 211 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698