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

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

Issue 2336643002: [Interpreter] Move context chain search loop to handler (Closed)
Patch Set: Address comments 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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 InterpreterAssembler* assembler); 129 InterpreterAssembler* assembler);
130 130
131 // Generates code to perform a lookup slot load via |function_id|. 131 // Generates code to perform a lookup slot load via |function_id|.
132 void DoLdaLookupSlot(Runtime::FunctionId function_id, 132 void DoLdaLookupSlot(Runtime::FunctionId function_id,
133 InterpreterAssembler* assembler); 133 InterpreterAssembler* assembler);
134 134
135 // Generates code to perform a lookup slot store depending on |language_mode|. 135 // Generates code to perform a lookup slot store depending on |language_mode|.
136 void DoStaLookupSlot(LanguageMode language_mode, 136 void DoStaLookupSlot(LanguageMode language_mode,
137 InterpreterAssembler* assembler); 137 InterpreterAssembler* assembler);
138 138
139 // Generates code to get a context at a given |depth| from the given
140 // |root_context|.
Michael Starzinger 2016/09/13 09:53:08 nit: The name "root_context" sounds misleading bec
Leszek Swirski 2016/09/13 10:17:51 Done (actually, this was a leftover definition fro
141 compiler::Node* GetContextAtDepth(InterpreterAssembler* assembler,
142 compiler::Node* root_context,
143 compiler::Node* depth);
144
139 // Generates code to load a context slot. 145 // Generates code to load a context slot.
140 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler); 146 compiler::Node* BuildLoadContextSlot(InterpreterAssembler* assembler);
141 147
142 // Generates code to load a global. 148 // Generates code to load a global.
143 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); 149 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler);
144 150
145 // Generates code to load a named property. 151 // Generates code to load a named property.
146 compiler::Node* BuildLoadNamedProperty(Callable ic, 152 compiler::Node* BuildLoadNamedProperty(Callable ic,
147 InterpreterAssembler* assembler); 153 InterpreterAssembler* assembler);
148 154
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 186 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
181 187
182 DISALLOW_COPY_AND_ASSIGN(Interpreter); 188 DISALLOW_COPY_AND_ASSIGN(Interpreter);
183 }; 189 };
184 190
185 } // namespace interpreter 191 } // namespace interpreter
186 } // namespace internal 192 } // namespace internal
187 } // namespace v8 193 } // namespace v8
188 194
189 #endif // V8_INTERPRETER_INTERPRETER_H_ 195 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698