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

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

Issue 2684973002: [ic] Inline LoadGlobalIC in bytecode handlers (Closed)
Patch Set: Remove gen_context arg 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>
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(const std::function<compiler::Node*()>& gen_name_index,
152 compiler::Node* name_index, 153 compiler::Node* feedback_slot, TypeofMode typeof_mode,
153 compiler::Node* feedback_slot, 154 InterpreterAssembler* assembler);
154 InterpreterAssembler* assembler);
155 155
156 // Generates code to prepare the result for ForInPrepare. Cache data 156 // Generates code to prepare the result for ForInPrepare. Cache data
157 // are placed into the consecutive series of registers starting at 157 // are placed into the consecutive series of registers starting at
158 // |output_register|. 158 // |output_register|.
159 void BuildForInPrepareResult(compiler::Node* output_register, 159 void BuildForInPrepareResult(compiler::Node* output_register,
160 compiler::Node* cache_type, 160 compiler::Node* cache_type,
161 compiler::Node* cache_array, 161 compiler::Node* cache_array,
162 compiler::Node* cache_length, 162 compiler::Node* cache_length,
163 InterpreterAssembler* assembler); 163 InterpreterAssembler* assembler);
164 164
(...skipping 19 matching lines...) Expand all
184 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_; 184 std::unique_ptr<uintptr_t[]> bytecode_dispatch_counters_table_;
185 185
186 DISALLOW_COPY_AND_ASSIGN(Interpreter); 186 DISALLOW_COPY_AND_ASSIGN(Interpreter);
187 }; 187 };
188 188
189 } // namespace interpreter 189 } // namespace interpreter
190 } // namespace internal 190 } // namespace internal
191 } // namespace v8 191 } // namespace v8
192 192
193 #endif // V8_INTERPRETER_INTERPRETER_H_ 193 #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