| 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 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 #define HEAP_CONSTANT_TEST(rootName, name) Node* Is##name(Node* value); | 129 #define HEAP_CONSTANT_TEST(rootName, name) Node* Is##name(Node* value); |
| 130 HEAP_CONSTANT_LIST(HEAP_CONSTANT_TEST) | 130 HEAP_CONSTANT_LIST(HEAP_CONSTANT_TEST) |
| 131 #undef HEAP_CONSTANT_TEST | 131 #undef HEAP_CONSTANT_TEST |
| 132 | 132 |
| 133 Node* HashSeed(); | 133 Node* HashSeed(); |
| 134 Node* StaleRegisterConstant(); | 134 Node* StaleRegisterConstant(); |
| 135 | 135 |
| 136 Node* IntPtrOrSmiConstant(int value, ParameterMode mode); | 136 Node* IntPtrOrSmiConstant(int value, ParameterMode mode); |
| 137 | 137 |
| 138 Node* IntPtrAddFoldConstants(Node* left, Node* right); | |
| 139 Node* IntPtrSubFoldConstants(Node* left, Node* right); | |
| 140 // Round the 32bits payload of the provided word up to the next power of two. | 138 // Round the 32bits payload of the provided word up to the next power of two. |
| 141 Node* IntPtrRoundUpToPowerOfTwo32(Node* value); | 139 Node* IntPtrRoundUpToPowerOfTwo32(Node* value); |
| 142 // Select the maximum of the two provided IntPtr values. | 140 // Select the maximum of the two provided IntPtr values. |
| 143 Node* IntPtrMax(Node* left, Node* right); | 141 Node* IntPtrMax(Node* left, Node* right); |
| 144 // Select the minimum of the two provided IntPtr values. | 142 // Select the minimum of the two provided IntPtr values. |
| 145 Node* IntPtrMin(Node* left, Node* right); | 143 Node* IntPtrMin(Node* left, Node* right); |
| 146 | 144 |
| 147 // Float64 operations. | 145 // Float64 operations. |
| 148 Node* Float64Ceil(Node* x); | 146 Node* Float64Ceil(Node* x); |
| 149 Node* Float64Floor(Node* x); | 147 Node* Float64Floor(Node* x); |
| (...skipping 1066 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1216 } | 1214 } |
| 1217 #else | 1215 #else |
| 1218 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1216 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
| 1219 #endif | 1217 #endif |
| 1220 | 1218 |
| 1221 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1219 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
| 1222 | 1220 |
| 1223 } // namespace internal | 1221 } // namespace internal |
| 1224 } // namespace v8 | 1222 } // namespace v8 |
| 1225 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1223 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |