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 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
590 | 590 |
591 // Perform CreateArrayIterator (ES6 #sec-createarrayiterator). | 591 // Perform CreateArrayIterator (ES6 #sec-createarrayiterator). |
592 Node* CreateArrayIterator(Node* array, Node* array_map, Node* array_type, | 592 Node* CreateArrayIterator(Node* array, Node* array_map, Node* array_type, |
593 Node* context, IterationKind mode); | 593 Node* context, IterationKind mode); |
594 | 594 |
595 Node* AllocateJSArrayIterator(Node* array, Node* array_map, Node* map); | 595 Node* AllocateJSArrayIterator(Node* array, Node* array_map, Node* map); |
596 | 596 |
597 // Perform ArraySpeciesCreate (ES6 #sec-arrayspeciescreate). | 597 // Perform ArraySpeciesCreate (ES6 #sec-arrayspeciescreate). |
598 Node* ArraySpeciesCreate(Node* context, Node* originalArray, Node* len); | 598 Node* ArraySpeciesCreate(Node* context, Node* originalArray, Node* len); |
599 | 599 |
| 600 Node* TypedArraySpeciesCreateByLength(Node* context, Node* originalArray, |
| 601 Node* len); |
| 602 |
600 void FillFixedArrayWithValue(ElementsKind kind, Node* array, Node* from_index, | 603 void FillFixedArrayWithValue(ElementsKind kind, Node* array, Node* from_index, |
601 Node* to_index, | 604 Node* to_index, |
602 Heap::RootListIndex value_root_index, | 605 Heap::RootListIndex value_root_index, |
603 ParameterMode mode = INTPTR_PARAMETERS); | 606 ParameterMode mode = INTPTR_PARAMETERS); |
604 | 607 |
605 // Copies all elements from |from_array| of |length| size to | 608 // Copies all elements from |from_array| of |length| size to |
606 // |to_array| of the same size respecting the elements kind. | 609 // |to_array| of the same size respecting the elements kind. |
607 void CopyFixedArrayElements( | 610 void CopyFixedArrayElements( |
608 ElementsKind kind, Node* from_array, Node* to_array, Node* length, | 611 ElementsKind kind, Node* from_array, Node* to_array, Node* length, |
609 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, | 612 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, |
(...skipping 893 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1503 } | 1506 } |
1504 #else | 1507 #else |
1505 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1508 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1506 #endif | 1509 #endif |
1507 | 1510 |
1508 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1511 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1509 | 1512 |
1510 } // namespace internal | 1513 } // namespace internal |
1511 } // namespace v8 | 1514 } // namespace v8 |
1512 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1515 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |