| 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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1316 |
| 1317 void BranchIfPrototypesHaveNoElements(Node* receiver_map, | 1317 void BranchIfPrototypesHaveNoElements(Node* receiver_map, |
| 1318 Label* definitely_no_elements, | 1318 Label* definitely_no_elements, |
| 1319 Label* possibly_elements); | 1319 Label* possibly_elements); |
| 1320 | 1320 |
| 1321 private: | 1321 private: |
| 1322 friend class CodeStubArguments; | 1322 friend class CodeStubArguments; |
| 1323 | 1323 |
| 1324 void HandleBreakOnNode(); | 1324 void HandleBreakOnNode(); |
| 1325 | 1325 |
| 1326 Node* AllocateRawAligned(Node* size_in_bytes, AllocationFlags flags, | 1326 Node* AllocateRawDoubleAligned(Node* size_in_bytes, AllocationFlags flags, |
| 1327 Node* top_address, Node* limit_address); | 1327 Node* top_address, Node* limit_address); |
| 1328 Node* AllocateRawUnaligned(Node* size_in_bytes, AllocationFlags flags, | 1328 Node* AllocateRawUnaligned(Node* size_in_bytes, AllocationFlags flags, |
| 1329 Node* top_adddress, Node* limit_address); | 1329 Node* top_adddress, Node* limit_address); |
| 1330 Node* AllocateRaw(Node* size_in_bytes, AllocationFlags flags, |
| 1331 Node* top_address, Node* limit_address); |
| 1330 // Allocate and return a JSArray of given total size in bytes with header | 1332 // Allocate and return a JSArray of given total size in bytes with header |
| 1331 // fields initialized. | 1333 // fields initialized. |
| 1332 Node* AllocateUninitializedJSArray(ElementsKind kind, Node* array_map, | 1334 Node* AllocateUninitializedJSArray(ElementsKind kind, Node* array_map, |
| 1333 Node* length, Node* allocation_site, | 1335 Node* length, Node* allocation_site, |
| 1334 Node* size_in_bytes); | 1336 Node* size_in_bytes); |
| 1335 | 1337 |
| 1336 Node* SmiShiftBitsConstant(); | 1338 Node* SmiShiftBitsConstant(); |
| 1337 | 1339 |
| 1338 // Emits keyed sloppy arguments load if the |value| is nullptr or store | 1340 // Emits keyed sloppy arguments load if the |value| is nullptr or store |
| 1339 // otherwise. Returns either the loaded value or |value|. | 1341 // otherwise. Returns either the loaded value or |value|. |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1478 } | 1480 } |
| 1479 #else | 1481 #else |
| 1480 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1482 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1481 #endif | 1483 #endif |
| 1482 | 1484 |
| 1483 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1485 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1484 | 1486 |
| 1485 } // namespace internal | 1487 } // namespace internal |
| 1486 } // namespace v8 | 1488 } // namespace v8 |
| 1487 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1489 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |