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 Node* TypedArraySpeciesCreateByLength(Node* context, Node* originalArray, |
| 625 Node* len); |
| 626 |
624 void FillFixedArrayWithValue(ElementsKind kind, Node* array, Node* from_index, | 627 void FillFixedArrayWithValue(ElementsKind kind, Node* array, Node* from_index, |
625 Node* to_index, | 628 Node* to_index, |
626 Heap::RootListIndex value_root_index, | 629 Heap::RootListIndex value_root_index, |
627 ParameterMode mode = INTPTR_PARAMETERS); | 630 ParameterMode mode = INTPTR_PARAMETERS); |
628 | 631 |
629 // Copies all elements from |from_array| of |length| size to | 632 // Copies all elements from |from_array| of |length| size to |
630 // |to_array| of the same size respecting the elements kind. | 633 // |to_array| of the same size respecting the elements kind. |
631 void CopyFixedArrayElements( | 634 void CopyFixedArrayElements( |
632 ElementsKind kind, Node* from_array, Node* to_array, Node* length, | 635 ElementsKind kind, Node* from_array, Node* to_array, Node* length, |
633 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, | 636 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, |
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1629 } | 1632 } |
1630 #else | 1633 #else |
1631 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1634 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1632 #endif | 1635 #endif |
1633 | 1636 |
1634 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1637 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1635 | 1638 |
1636 } // namespace internal | 1639 } // namespace internal |
1637 } // namespace v8 | 1640 } // namespace v8 |
1638 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1641 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |