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 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1255 Node* PageFromAddress(Node* address); | 1255 Node* PageFromAddress(Node* address); |
1256 | 1256 |
1257 // Create a new weak cell with a specified value and install it into a | 1257 // Create a new weak cell with a specified value and install it into a |
1258 // feedback vector. | 1258 // feedback vector. |
1259 Node* CreateWeakCellInFeedbackVector(Node* feedback_vector, Node* slot, | 1259 Node* CreateWeakCellInFeedbackVector(Node* feedback_vector, Node* slot, |
1260 Node* value); | 1260 Node* value); |
1261 | 1261 |
1262 // Create a new AllocationSite and install it into a feedback vector. | 1262 // Create a new AllocationSite and install it into a feedback vector. |
1263 Node* CreateAllocationSiteInFeedbackVector(Node* feedback_vector, Node* slot); | 1263 Node* CreateAllocationSiteInFeedbackVector(Node* feedback_vector, Node* slot); |
1264 | 1264 |
| 1265 // Given a recently allocated object {object}, with map {initial_map}, |
| 1266 // initialize remaining fields appropriately to comply with slack tracking. |
| 1267 void HandleSlackTracking(Node* context, Node* object, Node* initial_map, |
| 1268 int start_offset); |
| 1269 |
1265 enum class IndexAdvanceMode { kPre, kPost }; | 1270 enum class IndexAdvanceMode { kPre, kPost }; |
1266 | 1271 |
1267 typedef std::function<void(Node* index)> FastLoopBody; | 1272 typedef std::function<void(Node* index)> FastLoopBody; |
1268 | 1273 |
1269 Node* BuildFastLoop(const VariableList& var_list, Node* start_index, | 1274 Node* BuildFastLoop(const VariableList& var_list, Node* start_index, |
1270 Node* end_index, const FastLoopBody& body, int increment, | 1275 Node* end_index, const FastLoopBody& body, int increment, |
1271 ParameterMode parameter_mode, | 1276 ParameterMode parameter_mode, |
1272 IndexAdvanceMode advance_mode = IndexAdvanceMode::kPre); | 1277 IndexAdvanceMode advance_mode = IndexAdvanceMode::kPre); |
1273 | 1278 |
1274 Node* BuildFastLoop(Node* start_index, Node* end_index, | 1279 Node* BuildFastLoop(Node* start_index, Node* end_index, |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1590 } | 1595 } |
1591 #else | 1596 #else |
1592 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1597 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1593 #endif | 1598 #endif |
1594 | 1599 |
1595 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1600 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1596 | 1601 |
1597 } // namespace internal | 1602 } // namespace internal |
1598 } // namespace v8 | 1603 } // namespace v8 |
1599 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1604 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |