| 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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 void CheckEnumCache(compiler::Node* receiver, | 699 void CheckEnumCache(compiler::Node* receiver, |
| 700 CodeStubAssembler::Label* use_cache, | 700 CodeStubAssembler::Label* use_cache, |
| 701 CodeStubAssembler::Label* use_runtime); | 701 CodeStubAssembler::Label* use_runtime); |
| 702 | 702 |
| 703 // Create a new weak cell with a specified value and install it into a | 703 // Create a new weak cell with a specified value and install it into a |
| 704 // feedback vector. | 704 // feedback vector. |
| 705 compiler::Node* CreateWeakCellInFeedbackVector( | 705 compiler::Node* CreateWeakCellInFeedbackVector( |
| 706 compiler::Node* feedback_vector, compiler::Node* slot, | 706 compiler::Node* feedback_vector, compiler::Node* slot, |
| 707 compiler::Node* value); | 707 compiler::Node* value); |
| 708 | 708 |
| 709 // Create a new AllocationSite and install it into a feedback vector. |
| 710 compiler::Node* CreateAllocationSiteInFeedbackVector( |
| 711 compiler::Node* feedback_vector, compiler::Node* slot); |
| 712 |
| 709 compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count, | 713 compiler::Node* GetFixedAarrayAllocationSize(compiler::Node* element_count, |
| 710 ElementsKind kind, | 714 ElementsKind kind, |
| 711 ParameterMode mode) { | 715 ParameterMode mode) { |
| 712 return ElementOffsetFromIndex(element_count, kind, mode, | 716 return ElementOffsetFromIndex(element_count, kind, mode, |
| 713 FixedArray::kHeaderSize); | 717 FixedArray::kHeaderSize); |
| 714 } | 718 } |
| 715 | 719 |
| 716 private: | 720 private: |
| 717 enum ElementSupport { kOnlyProperties, kSupportElements }; | 721 enum ElementSupport { kOnlyProperties, kSupportElements }; |
| 718 | 722 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 Label* bailout); | 762 Label* bailout); |
| 759 | 763 |
| 760 static const int kElementLoopUnrollThreshold = 8; | 764 static const int kElementLoopUnrollThreshold = 8; |
| 761 }; | 765 }; |
| 762 | 766 |
| 763 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 767 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 764 | 768 |
| 765 } // namespace internal | 769 } // namespace internal |
| 766 } // namespace v8 | 770 } // namespace v8 |
| 767 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 771 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |