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

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

Issue 1838283003: Migrate FastCloneShallowObjectStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 295
296 // Check that the value is a positive smi. 296 // Check that the value is a positive smi.
297 Node* WordIsPositiveSmi(Node* a); 297 Node* WordIsPositiveSmi(Node* a);
298 298
299 // Load an object pointer from a buffer that isn't in the heap. 299 // Load an object pointer from a buffer that isn't in the heap.
300 Node* LoadBufferObject(Node* buffer, int offset, 300 Node* LoadBufferObject(Node* buffer, int offset,
301 MachineType rep = MachineType::AnyTagged()); 301 MachineType rep = MachineType::AnyTagged());
302 // Load a field from an object on the heap. 302 // Load a field from an object on the heap.
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 // Store a field to an object on the heap.
306 Node* StoreObjectFieldNoWriteBarrier(
307 Node* object, int offset, Node* value,
308 MachineRepresentation rep = MachineRepresentation::kTagged);
305 // Load the floating point value of a HeapNumber. 309 // Load the floating point value of a HeapNumber.
306 Node* LoadHeapNumberValue(Node* object); 310 Node* LoadHeapNumberValue(Node* object);
307 // Store the floating point value of a HeapNumber. 311 // Store the floating point value of a HeapNumber.
308 Node* StoreHeapNumberValue(Node* object, Node* value); 312 Node* StoreHeapNumberValue(Node* object, Node* value);
309 // Truncate the floating point value of a HeapNumber to an Int32. 313 // Truncate the floating point value of a HeapNumber to an Int32.
310 Node* TruncateHeapNumberValueToWord32(Node* object); 314 Node* TruncateHeapNumberValueToWord32(Node* object);
311 // Load the bit field of a Map. 315 // Load the bit field of a Map.
312 Node* LoadMapBitField(Node* map); 316 Node* LoadMapBitField(Node* map);
313 // Load the instance type of a Map. 317 // Load the instance type of a Map.
314 Node* LoadMapInstanceType(Node* map); 318 Node* LoadMapInstanceType(Node* map);
319 // Load the instance size of a Map.
320 Node* LoadMapInstanceSize(Node* map);
315 321
316 // Load an array element from a FixedArray. 322 // Load an array element from a FixedArray.
317 Node* LoadFixedArrayElementSmiIndex(Node* object, Node* smi_index, 323 Node* LoadFixedArrayElementSmiIndex(Node* object, Node* smi_index,
318 int additional_offset = 0); 324 int additional_offset = 0);
319 Node* LoadFixedArrayElementConstantIndex(Node* object, int index); 325 Node* LoadFixedArrayElementConstantIndex(Node* object, int index);
320 326
321 // Allocate an object of the given size. 327 // Allocate an object of the given size.
322 Node* Allocate(int size, AllocationFlags flags = kNone); 328 Node* Allocate(int size, AllocationFlags flags = kNone);
323 // Allocate a HeapNumber without initializing its value. 329 // Allocate a HeapNumber without initializing its value.
324 Node* AllocateHeapNumber(); 330 Node* AllocateHeapNumber();
(...skipping 124 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 455 // Map of variables to the list of value nodes that have been added from each
450 // merge path in their order of merging. 456 // merge path in their order of merging.
451 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 457 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
452 }; 458 };
453 459
454 } // namespace compiler 460 } // namespace compiler
455 } // namespace internal 461 } // namespace internal
456 } // namespace v8 462 } // namespace v8
457 463
458 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 464 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698