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

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

Issue 1827523005: [turbofan] Reduce boilerplate around HeapNumber allocation in stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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-stubs.cc ('k') | src/compiler/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 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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 Node* LoadMapBitField(Node* map); 298 Node* LoadMapBitField(Node* map);
299 // Load the instance type of a Map. 299 // Load the instance type of a Map.
300 Node* LoadMapInstanceType(Node* map); 300 Node* LoadMapInstanceType(Node* map);
301 301
302 // Load an array element from a FixedArray. 302 // Load an array element from a FixedArray.
303 Node* LoadFixedArrayElementSmiIndex(Node* object, Node* smi_index, 303 Node* LoadFixedArrayElementSmiIndex(Node* object, Node* smi_index,
304 int additional_offset = 0); 304 int additional_offset = 0);
305 Node* LoadFixedArrayElementConstantIndex(Node* object, int index); 305 Node* LoadFixedArrayElementConstantIndex(Node* object, int index);
306 306
307 // Allocate an object of the given size. 307 // Allocate an object of the given size.
308 Node* Allocate(int size, AllocationFlags flags); 308 Node* Allocate(int size, AllocationFlags flags = kNone);
309 // Allocate a HeapNumber without initializing its value.
310 Node* AllocateHeapNumber();
311 // Allocate a HeapNumber with a specific value.
312 Node* AllocateHeapNumberWithValue(Node* value);
309 313
310 // Store an array element to a FixedArray. 314 // Store an array element to a FixedArray.
311 Node* StoreFixedArrayElementNoWriteBarrier(Node* object, Node* index, 315 Node* StoreFixedArrayElementNoWriteBarrier(Node* object, Node* index,
312 Node* value); 316 Node* value);
313 // Load the Map of an HeapObject. 317 // Load the Map of an HeapObject.
314 Node* LoadMap(Node* object); 318 Node* LoadMap(Node* object);
315 // Store the Map of an HeapObject. 319 // Store the Map of an HeapObject.
316 Node* StoreMapNoWriteBarrier(Node* object, Node* map); 320 Node* StoreMapNoWriteBarrier(Node* object, Node* map);
317 // Load the instance type of an HeapObject. 321 // Load the instance type of an HeapObject.
318 Node* LoadInstanceType(Node* object); 322 Node* LoadInstanceType(Node* object);
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // Map of variables to the list of value nodes that have been added from each 429 // Map of variables to the list of value nodes that have been added from each
426 // merge path in their order of merging. 430 // merge path in their order of merging.
427 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_; 431 std::map<Variable::Impl*, std::vector<Node*>> variable_merges_;
428 }; 432 };
429 433
430 } // namespace compiler 434 } // namespace compiler
431 } // namespace internal 435 } // namespace internal
432 } // namespace v8 436 } // namespace v8
433 437
434 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_ 438 #endif // V8_COMPILER_CODE_STUB_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « src/code-stubs.cc ('k') | src/compiler/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698