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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 | 562 |
563 // Allocate a RegExpResult with the given length (the number of captures, | 563 // Allocate a RegExpResult with the given length (the number of captures, |
564 // including the match itself), index (the index where the match starts), | 564 // including the match itself), index (the index where the match starts), |
565 // and input string. |length| and |index| are expected to be tagged, and | 565 // and input string. |length| and |index| are expected to be tagged, and |
566 // |input| must be a string. | 566 // |input| must be a string. |
567 Node* AllocateRegExpResult(Node* context, Node* length, Node* index, | 567 Node* AllocateRegExpResult(Node* context, Node* length, Node* index, |
568 Node* input); | 568 Node* input); |
569 | 569 |
570 Node* AllocateNameDictionary(int capacity); | 570 Node* AllocateNameDictionary(int capacity); |
571 Node* AllocateNameDictionary(Node* capacity); | 571 Node* AllocateNameDictionary(Node* capacity); |
| 572 Node* CopyNameDictionary(Node* dictionary, Label* large_object_fallback); |
572 | 573 |
573 Node* AllocateJSObjectFromMap(Node* map, Node* properties = nullptr, | 574 Node* AllocateJSObjectFromMap(Node* map, Node* properties = nullptr, |
574 Node* elements = nullptr, | 575 Node* elements = nullptr, |
575 AllocationFlags flags = kNone); | 576 AllocationFlags flags = kNone); |
576 | 577 |
577 void InitializeJSObjectFromMap(Node* object, Node* map, Node* size, | 578 void InitializeJSObjectFromMap(Node* object, Node* map, Node* size, |
578 Node* properties = nullptr, | 579 Node* properties = nullptr, |
579 Node* elements = nullptr); | 580 Node* elements = nullptr); |
580 | 581 |
581 void InitializeJSObjectBody(Node* object, Node* map, Node* size, | 582 void InitializeJSObjectBody(Node* object, Node* map, Node* size, |
(...skipping 991 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1573 } | 1574 } |
1574 #else | 1575 #else |
1575 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1576 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1576 #endif | 1577 #endif |
1577 | 1578 |
1578 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1579 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1579 | 1580 |
1580 } // namespace internal | 1581 } // namespace internal |
1581 } // namespace v8 | 1582 } // namespace v8 |
1582 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1583 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |