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

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

Issue 2684973002: [ic] Inline LoadGlobalIC in bytecode handlers (Closed)
Patch Set: Rebase and address comments 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
« no previous file with comments | « no previous file | src/interpreter/interpreter.cc » ('j') | src/interpreter/interpreter.cc » ('J')
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 <functional>
rmcilroy 2017/02/09 10:30:45 no longer needed?
jgruber 2017/02/09 11:40:32 Done.
8 #include <memory> 9 #include <memory>
9 10
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 11 // Clients of this interface shouldn't depend on lots of interpreter internals.
11 // Do not include anything from src/interpreter other than 12 // Do not include anything from src/interpreter other than
12 // src/interpreter/bytecodes.h here! 13 // src/interpreter/bytecodes.h here!
13 #include "src/base/macros.h" 14 #include "src/base/macros.h"
14 #include "src/builtins/builtins.h" 15 #include "src/builtins/builtins.h"
15 #include "src/interpreter/bytecodes.h" 16 #include "src/interpreter/bytecodes.h"
16 #include "src/parsing/token.h" 17 #include "src/parsing/token.h"
17 #include "src/runtime/runtime.h" 18 #include "src/runtime/runtime.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 // fast path to a global load. 142 // fast path to a global load.
142 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id, 143 void DoLdaLookupGlobalSlot(Runtime::FunctionId function_id,
143 InterpreterAssembler* assembler); 144 InterpreterAssembler* assembler);
144 145
145 // Generates code to perform a lookup slot store depending on 146 // Generates code to perform a lookup slot store depending on
146 // |language_mode|. 147 // |language_mode|.
147 void DoStaLookupSlot(LanguageMode language_mode, 148 void DoStaLookupSlot(LanguageMode language_mode,
148 InterpreterAssembler* assembler); 149 InterpreterAssembler* assembler);
149 150
150 // Generates code to load a global. 151 // Generates code to load a global.
151 compiler::Node* BuildLoadGlobal(Callable ic, compiler::Node* context, 152 void BuildLoadGlobal(int slot_index, int name_index_index,
152 compiler::Node* name_index, 153 TypeofMode typeof_mode, InterpreterAssembler* assembler);
153 compiler::Node* feedback_slot,
154 InterpreterAssembler* assembler);
155 154
156 // Generates code to prepare the result for ForInPrepare. Cache data 155 // Generates code to prepare the result for ForInPrepare. Cache data
157 // are placed into the consecutive series of registers starting at 156 // are placed into the consecutive series of registers starting at
158 // |output_register|. 157 // |output_register|.
159 void BuildForInPrepareResult(compiler::Node* output_register, 158 void BuildForInPrepareResult(compiler::Node* output_register,
160 compiler::Node* cache_type, 159 compiler::Node* cache_type,
161 compiler::Node* cache_array, 160 compiler::Node* cache_array,
162 compiler::Node* cache_length, 161 compiler::Node* cache_length,
163 InterpreterAssembler* assembler); 162 InterpreterAssembler* assembler);
164 163
(...skipping 19 matching lines...) Expand all
184 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 183 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
185 184
186 DISALLOW_COPY_AND_ASSIGN(Interpreter); 185 DISALLOW_COPY_AND_ASSIGN(Interpreter);
187 }; 186 };
188 187
189 } // namespace interpreter 188 } // namespace interpreter
190 } // namespace internal 189 } // namespace internal
191 } // namespace v8 190 } // namespace v8
192 191
193 #endif // V8_INTERPRETER_INTERPRETER_H_ 192 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/interpreter.cc » ('j') | src/interpreter/interpreter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698