| 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 // including the match itself), index (the index where the match starts), | 496 // including the match itself), index (the index where the match starts), |
| 497 // and input string. |length| and |index| are expected to be tagged, and | 497 // and input string. |length| and |index| are expected to be tagged, and |
| 498 // |input| must be a string. | 498 // |input| must be a string. |
| 499 Node* AllocateRegExpResult(Node* context, Node* length, Node* index, | 499 Node* AllocateRegExpResult(Node* context, Node* length, Node* index, |
| 500 Node* input); | 500 Node* input); |
| 501 | 501 |
| 502 Node* AllocateNameDictionary(int capacity); | 502 Node* AllocateNameDictionary(int capacity); |
| 503 Node* AllocateNameDictionary(Node* capacity); | 503 Node* AllocateNameDictionary(Node* capacity); |
| 504 | 504 |
| 505 Node* AllocateJSObjectFromMap(Node* map, Node* properties = nullptr, | 505 Node* AllocateJSObjectFromMap(Node* map, Node* properties = nullptr, |
| 506 Node* elements = nullptr); | 506 Node* elements = nullptr, |
| 507 AllocationFlags flags = kNone); |
| 507 | 508 |
| 508 void InitializeJSObjectFromMap(Node* object, Node* map, Node* size, | 509 void InitializeJSObjectFromMap(Node* object, Node* map, Node* size, |
| 509 Node* properties = nullptr, | 510 Node* properties = nullptr, |
| 510 Node* elements = nullptr); | 511 Node* elements = nullptr); |
| 511 | 512 |
| 512 void InitializeJSObjectBody(Node* object, Node* map, Node* size, | 513 void InitializeJSObjectBody(Node* object, Node* map, Node* size, |
| 513 int start_offset = JSObject::kHeaderSize); | 514 int start_offset = JSObject::kHeaderSize); |
| 514 | 515 |
| 515 // Allocate a JSArray without elements and initialize the header fields. | 516 // Allocate a JSArray without elements and initialize the header fields. |
| 516 Node* AllocateUninitializedJSArrayWithoutElements(ElementsKind kind, | 517 Node* AllocateUninitializedJSArrayWithoutElements(ElementsKind kind, |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1208 } | 1209 } |
| 1209 #else | 1210 #else |
| 1210 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1211 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1211 #endif | 1212 #endif |
| 1212 | 1213 |
| 1213 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1214 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1214 | 1215 |
| 1215 } // namespace internal | 1216 } // namespace internal |
| 1216 } // namespace v8 | 1217 } // namespace v8 |
| 1217 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1218 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |