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

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

Issue 1843613002: Add initial code-stub version of Object.prototype.hasOwnProperty (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 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_COMPILER_CODE_STUB_ASSEMBLER_H_ 5 #ifndef V8_COMPILER_CODE_STUB_ASSEMBLER_H_
6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 6 #define V8_COMPILER_CODE_STUB_ASSEMBLER_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 // Clients of this interface shouldn't depend on lots of compiler internals. 10 // Clients of this interface shouldn't depend on lots of compiler internals.
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 Node* LoadObjectField(Node* object, int offset, 303 Node* LoadObjectField(Node* object, int offset,
304 MachineType rep = MachineType::AnyTagged()); 304 MachineType rep = MachineType::AnyTagged());
305 // Load the floating point value of a HeapNumber. 305 // Load the floating point value of a HeapNumber.
306 Node* LoadHeapNumberValue(Node* object); 306 Node* LoadHeapNumberValue(Node* object);
307 // Store the floating point value of a HeapNumber. 307 // Store the floating point value of a HeapNumber.
308 Node* StoreHeapNumberValue(Node* object, Node* value); 308 Node* StoreHeapNumberValue(Node* object, Node* value);
309 // Truncate the floating point value of a HeapNumber to an Int32. 309 // Truncate the floating point value of a HeapNumber to an Int32.
310 Node* TruncateHeapNumberValueToWord32(Node* object); 310 Node* TruncateHeapNumberValueToWord32(Node* object);
311 // Load the bit field of a Map. 311 // Load the bit field of a Map.
312 Node* LoadMapBitField(Node* map); 312 Node* LoadMapBitField(Node* map);
313 // Load the instance type of a Map. 313 // Load bit field 2 of a map.
314 Node* LoadMapBitField2(Node* map);
315 // Load bit field 3 of a map.
316 Node* LoadMapBitField3(Node* map);
317 // Load the instance type of a map.
314 Node* LoadMapInstanceType(Node* map); 318 Node* LoadMapInstanceType(Node* map);
319 // Load the instance descriptors of a map.
320 Node* LoadMapDescriptors(Node* map);
321
322 // Load the hash field of a name.
323 Node* LoadNameHash(Node* name);
315 324
316 // Load an array element from a FixedArray. 325 // Load an array element from a FixedArray.
326 Node* LoadFixedArrayElementInt32Index(Node* object, Node* int32_index,
327 int additional_offset = 0);
317 Node* LoadFixedArrayElementSmiIndex(Node* object, Node* smi_index, 328 Node* LoadFixedArrayElementSmiIndex(Node* object, Node* smi_index,
318 int additional_offset = 0); 329 int additional_offset = 0);
319 Node* LoadFixedArrayElementConstantIndex(Node* object, int index); 330 Node* LoadFixedArrayElementConstantIndex(Node* object, int index);
320 331
321 // Allocate an object of the given size. 332 // Allocate an object of the given size.
322 Node* Allocate(int size, AllocationFlags flags = kNone); 333 Node* Allocate(int size, AllocationFlags flags = kNone);
323 // Allocate a HeapNumber without initializing its value. 334 // Allocate a HeapNumber without initializing its value.
324 Node* AllocateHeapNumber(); 335 Node* AllocateHeapNumber();
325 // Allocate a HeapNumber with a specific value. 336 // Allocate a HeapNumber with a specific value.
326 Node* AllocateHeapNumberWithValue(Node* value); 337 Node* AllocateHeapNumberWithValue(Node* value);
327 338
328 // Store an array element to a FixedArray. 339 // Store an array element to a FixedArray.
329 Node* StoreFixedArrayElementNoWriteBarrier(Node* object, Node* index, 340 Node* StoreFixedArrayElementNoWriteBarrier(Node* object, Node* index,
330 Node* value); 341 Node* value);
331 // Load the Map of an HeapObject. 342 // Load the Map of an HeapObject.
332 Node* LoadMap(Node* object); 343 Node* LoadMap(Node* object);
333 // Store the Map of an HeapObject. 344 // Store the Map of an HeapObject.
334 Node* StoreMapNoWriteBarrier(Node* object, Node* map); 345 Node* StoreMapNoWriteBarrier(Node* object, Node* map);
335 // Load the instance type of an HeapObject. 346 // Load the instance type of an HeapObject.
336 Node* LoadInstanceType(Node* object); 347 Node* LoadInstanceType(Node* object);
337 348
349 // Load the elements backing store of a JSObject.
350 Node* LoadElements(Node* object);
351 // Load the length of a fixed array base instance.
352 Node* LoadFixedArrayBaseLength(Node* array);
353
338 // Returns a node that is true if the given bit is set in |word32|. 354 // Returns a node that is true if the given bit is set in |word32|.
339 template <typename T> 355 template <typename T>
340 Node* BitFieldDecode(Node* word32) { 356 Node* BitFieldDecode(Node* word32) {
341 return BitFieldDecode(word32, T::kShift, T::kMask); 357 return BitFieldDecode(word32, T::kShift, T::kMask);
342 } 358 }
343 359
344 Node* BitFieldDecode(Node* word32, uint32_t shift, uint32_t mask); 360 Node* BitFieldDecode(Node* word32, uint32_t shift, uint32_t mask);
345 361
346 // Conversions. 362 // Conversions.
347 Node* ChangeFloat64ToTagged(Node* value); 363 Node* ChangeFloat64ToTagged(Node* value);
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 // Map of variables to the list of value nodes that have been added from each 465 // Map of variables to the list of value nodes that have been added from each
450 // merge path in their order of merging. 466 // merge path in their order of merging.
451 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 467 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
452 }; 468 };
453 469
454 } // namespace compiler 470 } // namespace compiler
455 } // namespace internal 471 } // namespace internal
456 } // namespace v8 472 } // namespace v8
457 473
458 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 474 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_
OLDNEW
« src/builtins.cc ('K') | « src/builtins.cc ('k') | src/compiler/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698