| 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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 291 compiler::Node* capacity, | 291 compiler::Node* capacity, |
| 292 compiler::Node* length, | 292 compiler::Node* length, |
| 293 compiler::Node* allocation_site = nullptr, | 293 compiler::Node* allocation_site = nullptr, |
| 294 ParameterMode mode = INTEGER_PARAMETERS); | 294 ParameterMode mode = INTEGER_PARAMETERS); |
| 295 | 295 |
| 296 compiler::Node* AllocateFixedArray(ElementsKind kind, | 296 compiler::Node* AllocateFixedArray(ElementsKind kind, |
| 297 compiler::Node* capacity, | 297 compiler::Node* capacity, |
| 298 ParameterMode mode = INTEGER_PARAMETERS, | 298 ParameterMode mode = INTEGER_PARAMETERS, |
| 299 AllocationFlags flags = kNone); | 299 AllocationFlags flags = kNone); |
| 300 | 300 |
| 301 void FillFixedArrayWithHole(ElementsKind kind, compiler::Node* array, | 301 void FillFixedArrayWithValue(ElementsKind kind, compiler::Node* array, |
| 302 compiler::Node* from_index, | 302 compiler::Node* from_index, |
| 303 compiler::Node* to_index, | 303 compiler::Node* to_index, |
| 304 ParameterMode mode = INTEGER_PARAMETERS); | 304 Heap::RootListIndex value_root_index, |
| 305 ParameterMode mode = INTEGER_PARAMETERS); |
| 305 | 306 |
| 306 void CopyFixedArrayElements( | 307 void CopyFixedArrayElements( |
| 307 ElementsKind kind, compiler::Node* from_array, compiler::Node* to_array, | 308 ElementsKind kind, compiler::Node* from_array, compiler::Node* to_array, |
| 308 compiler::Node* element_count, | 309 compiler::Node* element_count, |
| 309 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, | 310 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, |
| 310 ParameterMode mode = INTEGER_PARAMETERS); | 311 ParameterMode mode = INTEGER_PARAMETERS); |
| 311 | 312 |
| 312 compiler::Node* CalculateNewElementsCapacity( | 313 compiler::Node* CalculateNewElementsCapacity( |
| 313 compiler::Node* old_capacity, ParameterMode mode = INTEGER_PARAMETERS); | 314 compiler::Node* old_capacity, ParameterMode mode = INTEGER_PARAMETERS); |
| 314 | 315 |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 608 compiler::Node* SmiShiftBitsConstant(); | 609 compiler::Node* SmiShiftBitsConstant(); |
| 609 | 610 |
| 610 static const int kElementLoopUnrollThreshold = 8; | 611 static const int kElementLoopUnrollThreshold = 8; |
| 611 }; | 612 }; |
| 612 | 613 |
| 613 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 614 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 614 | 615 |
| 615 } // namespace internal | 616 } // namespace internal |
| 616 } // namespace v8 | 617 } // namespace v8 |
| 617 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 618 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |