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

Side by Side Diff: src/code-stub-assembler.h

Issue 2183923003: [stubs,interpreter] Optimise SMI loading for 64-bit targets. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Optimizing SMI loads at code stub assembler level. Created 4 years, 4 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/builtins/builtins-string.cc ('k') | src/code-stub-assembler.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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_CODE_STUB_ASSEMBLER_H_
6 #define V8_CODE_STUB_ASSEMBLER_H_ 6 #define V8_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <functional> 8 #include <functional>
9 9
10 #include "src/compiler/code-assembler.h" 10 #include "src/compiler/code-assembler.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 // Load an object pointer from a buffer that isn't in the heap. 150 // Load an object pointer from a buffer that isn't in the heap.
151 compiler::Node* LoadBufferObject(compiler::Node* buffer, int offset, 151 compiler::Node* LoadBufferObject(compiler::Node* buffer, int offset,
152 MachineType rep = MachineType::AnyTagged()); 152 MachineType rep = MachineType::AnyTagged());
153 // Load a field from an object on the heap. 153 // Load a field from an object on the heap.
154 compiler::Node* LoadObjectField(compiler::Node* object, int offset, 154 compiler::Node* LoadObjectField(compiler::Node* object, int offset,
155 MachineType rep = MachineType::AnyTagged()); 155 MachineType rep = MachineType::AnyTagged());
156 compiler::Node* LoadObjectField(compiler::Node* object, 156 compiler::Node* LoadObjectField(compiler::Node* object,
157 compiler::Node* offset, 157 compiler::Node* offset,
158 MachineType rep = MachineType::AnyTagged()); 158 MachineType rep = MachineType::AnyTagged());
159 // Load a SMI field and untag it.
160 compiler::Node* LoadAndUntagObjectField(compiler::Node* object, int offset);
161 // Load a SMI field, untag it, and convert to Word32.
162 compiler::Node* LoadAndUntagToWord32ObjectField(compiler::Node* object,
163 int offset);
164 // Load a SMI and untag it.
165 compiler::Node* LoadAndUntagSmi(compiler::Node* base, int index);
166 // Load a SMI root, untag it, and convert to Word32.
167 compiler::Node* LoadAndUntagToWord32Root(Heap::RootListIndex root_index);
159 168
160 // Load the floating point value of a HeapNumber. 169 // Load the floating point value of a HeapNumber.
161 compiler::Node* LoadHeapNumberValue(compiler::Node* object); 170 compiler::Node* LoadHeapNumberValue(compiler::Node* object);
162 // Load the Map of an HeapObject. 171 // Load the Map of an HeapObject.
163 compiler::Node* LoadMap(compiler::Node* object); 172 compiler::Node* LoadMap(compiler::Node* object);
164 // Load the instance type of an HeapObject. 173 // Load the instance type of an HeapObject.
165 compiler::Node* LoadInstanceType(compiler::Node* object); 174 compiler::Node* LoadInstanceType(compiler::Node* object);
166 // Checks that given heap object has given instance type. 175 // Checks that given heap object has given instance type.
167 void AssertInstanceType(compiler::Node* object, InstanceType instance_type); 176 void AssertInstanceType(compiler::Node* object, InstanceType instance_type);
168 // Load the properties backing store of a JSObject. 177 // Load the properties backing store of a JSObject.
169 compiler::Node* LoadProperties(compiler::Node* object); 178 compiler::Node* LoadProperties(compiler::Node* object);
170 // Load the elements backing store of a JSObject. 179 // Load the elements backing store of a JSObject.
171 compiler::Node* LoadElements(compiler::Node* object); 180 compiler::Node* LoadElements(compiler::Node* object);
172 // Load the length of a fixed array base instance. 181 // Load the length of a fixed array base instance.
173 compiler::Node* LoadFixedArrayBaseLength(compiler::Node* array); 182 compiler::Node* LoadAndUntagFixedArrayBaseLength(compiler::Node* array);
174 // Load the bit field of a Map. 183 // Load the bit field of a Map.
175 compiler::Node* LoadMapBitField(compiler::Node* map); 184 compiler::Node* LoadMapBitField(compiler::Node* map);
176 // Load bit field 2 of a map. 185 // Load bit field 2 of a map.
177 compiler::Node* LoadMapBitField2(compiler::Node* map); 186 compiler::Node* LoadMapBitField2(compiler::Node* map);
178 // Load bit field 3 of a map. 187 // Load bit field 3 of a map.
179 compiler::Node* LoadMapBitField3(compiler::Node* map); 188 compiler::Node* LoadMapBitField3(compiler::Node* map);
180 // Load the instance type of a map. 189 // Load the instance type of a map.
181 compiler::Node* LoadMapInstanceType(compiler::Node* map); 190 compiler::Node* LoadMapInstanceType(compiler::Node* map);
182 // Load the instance descriptors of a map. 191 // Load the instance descriptors of a map.
183 compiler::Node* LoadMapDescriptors(compiler::Node* map); 192 compiler::Node* LoadMapDescriptors(compiler::Node* map);
(...skipping 21 matching lines...) Expand all
205 compiler::Node* LoadWeakCellValue(compiler::Node* weak_cell, 214 compiler::Node* LoadWeakCellValue(compiler::Node* weak_cell,
206 Label* if_cleared = nullptr); 215 Label* if_cleared = nullptr);
207 216
208 compiler::Node* AllocateUninitializedFixedArray(compiler::Node* length); 217 compiler::Node* AllocateUninitializedFixedArray(compiler::Node* length);
209 218
210 // Load an array element from a FixedArray. 219 // Load an array element from a FixedArray.
211 compiler::Node* LoadFixedArrayElement( 220 compiler::Node* LoadFixedArrayElement(
212 compiler::Node* object, compiler::Node* int32_index, 221 compiler::Node* object, compiler::Node* int32_index,
213 int additional_offset = 0, 222 int additional_offset = 0,
214 ParameterMode parameter_mode = INTEGER_PARAMETERS); 223 ParameterMode parameter_mode = INTEGER_PARAMETERS);
224 // Load an array element from a FixedArray, untag it and return it as Word32.
225 compiler::Node* LoadAndUntagToWord32FixedArrayElement(
226 compiler::Node* object, compiler::Node* int32_index,
227 int additional_offset = 0,
228 ParameterMode parameter_mode = INTEGER_PARAMETERS);
215 // Load an array element from a FixedDoubleArray. 229 // Load an array element from a FixedDoubleArray.
216 compiler::Node* LoadFixedDoubleArrayElement( 230 compiler::Node* LoadFixedDoubleArrayElement(
217 compiler::Node* object, compiler::Node* int32_index, 231 compiler::Node* object, compiler::Node* int32_index,
218 MachineType machine_type, int additional_offset = 0, 232 MachineType machine_type, int additional_offset = 0,
219 ParameterMode parameter_mode = INTEGER_PARAMETERS); 233 ParameterMode parameter_mode = INTEGER_PARAMETERS);
220 234
221 // Context manipulation 235 // Context manipulation
222 compiler::Node* LoadNativeContext(compiler::Node* context); 236 compiler::Node* LoadNativeContext(compiler::Node* context);
223 237
224 compiler::Node* LoadJSArrayElementsMap(ElementsKind kind, 238 compiler::Node* LoadJSArrayElementsMap(ElementsKind kind,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 AllocationFlags flags, 536 AllocationFlags flags,
523 compiler::Node* top_adddress, 537 compiler::Node* top_adddress,
524 compiler::Node* limit_address); 538 compiler::Node* limit_address);
525 539
526 static const int kElementLoopUnrollThreshold = 8; 540 static const int kElementLoopUnrollThreshold = 8;
527 }; 541 };
528 542
529 } // namespace internal 543 } // namespace internal
530 } // namespace v8 544 } // namespace v8
531 #endif // V8_CODE_STUB_ASSEMBLER_H_ 545 #endif // V8_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/builtins/builtins-string.cc ('k') | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698