| OLD | NEW |
| 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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 614 Node* AllocateFixedArray(ElementsKind kind, Node* capacity, | 614 Node* AllocateFixedArray(ElementsKind kind, Node* capacity, |
| 615 ParameterMode mode = INTPTR_PARAMETERS, | 615 ParameterMode mode = INTPTR_PARAMETERS, |
| 616 AllocationFlags flags = kNone); | 616 AllocationFlags flags = kNone); |
| 617 | 617 |
| 618 // Perform CreateArrayIterator (ES6 #sec-createarrayiterator). | 618 // Perform CreateArrayIterator (ES6 #sec-createarrayiterator). |
| 619 Node* CreateArrayIterator(Node* array, Node* array_map, Node* array_type, | 619 Node* CreateArrayIterator(Node* array, Node* array_map, Node* array_type, |
| 620 Node* context, IterationKind mode); | 620 Node* context, IterationKind mode); |
| 621 | 621 |
| 622 Node* AllocateJSArrayIterator(Node* array, Node* array_map, Node* map); | 622 Node* AllocateJSArrayIterator(Node* array, Node* array_map, Node* map); |
| 623 | 623 |
| 624 // Perform ArraySpeciesCreate (ES6 #sec-arrayspeciescreate). | |
| 625 Node* ArraySpeciesCreate(Node* context, Node* originalArray, Node* len); | |
| 626 | |
| 627 void FillFixedArrayWithValue(ElementsKind kind, Node* array, Node* from_index, | 624 void FillFixedArrayWithValue(ElementsKind kind, Node* array, Node* from_index, |
| 628 Node* to_index, | 625 Node* to_index, |
| 629 Heap::RootListIndex value_root_index, | 626 Heap::RootListIndex value_root_index, |
| 630 ParameterMode mode = INTPTR_PARAMETERS); | 627 ParameterMode mode = INTPTR_PARAMETERS); |
| 631 | 628 |
| 632 // Copies all elements from |from_array| of |length| size to | 629 // Copies all elements from |from_array| of |length| size to |
| 633 // |to_array| of the same size respecting the elements kind. | 630 // |to_array| of the same size respecting the elements kind. |
| 634 void CopyFixedArrayElements( | 631 void CopyFixedArrayElements( |
| 635 ElementsKind kind, Node* from_array, Node* to_array, Node* length, | 632 ElementsKind kind, Node* from_array, Node* to_array, Node* length, |
| 636 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, | 633 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, |
| (...skipping 983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1620 } | 1617 } |
| 1621 #else | 1618 #else |
| 1622 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1619 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1623 #endif | 1620 #endif |
| 1624 | 1621 |
| 1625 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1622 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1626 | 1623 |
| 1627 } // namespace internal | 1624 } // namespace internal |
| 1628 } // namespace v8 | 1625 } // namespace v8 |
| 1629 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1626 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |