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

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

Issue 2155153002: [interpreter] Update ForInPrepare to conditionally use runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Trim interpreter assembler. Created 4 years, 5 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 | « src/code-stub-assembler.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »
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 // Clients of this interface shouldn't depend on lots of interpreter internals. 8 // Clients of this interface shouldn't depend on lots of interpreter internals.
9 // Do not include anything from src/interpreter other than 9 // Do not include anything from src/interpreter other than
10 // src/interpreter/bytecodes.h here! 10 // src/interpreter/bytecodes.h here!
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler); 136 compiler::Node* BuildLoadGlobal(Callable ic, InterpreterAssembler* assembler);
137 137
138 // Generates code to load a named property. 138 // Generates code to load a named property.
139 compiler::Node* BuildLoadNamedProperty(Callable ic, 139 compiler::Node* BuildLoadNamedProperty(Callable ic,
140 InterpreterAssembler* assembler); 140 InterpreterAssembler* assembler);
141 141
142 // Generates code to load a keyed property. 142 // Generates code to load a keyed property.
143 compiler::Node* BuildLoadKeyedProperty(Callable ic, 143 compiler::Node* BuildLoadKeyedProperty(Callable ic,
144 InterpreterAssembler* assembler); 144 InterpreterAssembler* assembler);
145 145
146 // Generates code to prepare the result for ForInPrepare. Cache data
147 // are placed into the consecutive series of registers starting at
148 // |output_register|.
149 void BuildForInPrepareResult(compiler::Node* output_register,
150 compiler::Node* cache_type,
151 compiler::Node* cache_array,
152 compiler::Node* cache_length,
153 InterpreterAssembler* assembler);
154
146 uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const; 155 uintptr_t GetDispatchCounter(Bytecode from, Bytecode to) const;
147 156
148 // Get dispatch table index of bytecode. 157 // Get dispatch table index of bytecode.
149 static size_t GetDispatchTableIndex(Bytecode bytecode, 158 static size_t GetDispatchTableIndex(Bytecode bytecode,
150 OperandScale operand_scale); 159 OperandScale operand_scale);
151 160
152 bool IsDispatchTableInitialized(); 161 bool IsDispatchTableInitialized();
153 162
154 static const int kNumberOfWideVariants = 3; 163 static const int kNumberOfWideVariants = 3;
155 static const int kDispatchTableSize = kNumberOfWideVariants * (kMaxUInt8 + 1); 164 static const int kDispatchTableSize = kNumberOfWideVariants * (kMaxUInt8 + 1);
156 static const int kNumberOfBytecodes = static_cast<int>(Bytecode::kLast) + 1; 165 static const int kNumberOfBytecodes = static_cast<int>(Bytecode::kLast) + 1;
157 166
158 Isolate* isolate_; 167 Isolate* isolate_;
159 Address dispatch_table_[kDispatchTableSize]; 168 Address dispatch_table_[kDispatchTableSize];
160 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_; 169 v8::base::SmartArrayPointer<uintptr_t> bytecode_dispatch_counters_table_;
161 170
162 DISALLOW_COPY_AND_ASSIGN(Interpreter); 171 DISALLOW_COPY_AND_ASSIGN(Interpreter);
163 }; 172 };
164 173
165 } // namespace interpreter 174 } // namespace interpreter
166 } // namespace internal 175 } // namespace internal
167 } // namespace v8 176 } // namespace v8
168 177
169 #endif // V8_INTERPRETER_INTERPRETER_H_ 178 #endif // V8_INTERPRETER_INTERPRETER_H_
OLDNEW
« no previous file with comments | « src/code-stub-assembler.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698