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