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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 // Load value field of a JSValue object. | 293 // Load value field of a JSValue object. |
294 Node* LoadJSValueValue(Node* object); | 294 Node* LoadJSValueValue(Node* object); |
295 // Load value field of a WeakCell object. | 295 // Load value field of a WeakCell object. |
296 Node* LoadWeakCellValueUnchecked(Node* weak_cell); | 296 Node* LoadWeakCellValueUnchecked(Node* weak_cell); |
297 Node* LoadWeakCellValue(Node* weak_cell, Label* if_cleared = nullptr); | 297 Node* LoadWeakCellValue(Node* weak_cell, Label* if_cleared = nullptr); |
298 | 298 |
299 // Load an array element from a FixedArray. | 299 // Load an array element from a FixedArray. |
300 Node* LoadFixedArrayElement( | 300 Node* LoadFixedArrayElement( |
301 Node* object, Node* index, int additional_offset = 0, | 301 Node* object, Node* index, int additional_offset = 0, |
302 ParameterMode parameter_mode = INTEGER_PARAMETERS); | 302 ParameterMode parameter_mode = INTEGER_PARAMETERS); |
| 303 Node* LoadFixedArrayElement(Node* object, int index, |
| 304 int additional_offset = 0) { |
| 305 return LoadFixedArrayElement(object, IntPtrConstant(index), |
| 306 additional_offset, INTPTR_PARAMETERS); |
| 307 } |
303 // Load an array element from a FixedArray, untag it and return it as Word32. | 308 // Load an array element from a FixedArray, untag it and return it as Word32. |
304 Node* LoadAndUntagToWord32FixedArrayElement( | 309 Node* LoadAndUntagToWord32FixedArrayElement( |
305 Node* object, Node* index, int additional_offset = 0, | 310 Node* object, Node* index, int additional_offset = 0, |
306 ParameterMode parameter_mode = INTEGER_PARAMETERS); | 311 ParameterMode parameter_mode = INTEGER_PARAMETERS); |
307 // Load an array element from a FixedDoubleArray. | 312 // Load an array element from a FixedDoubleArray. |
308 Node* LoadFixedDoubleArrayElement( | 313 Node* LoadFixedDoubleArrayElement( |
309 Node* object, Node* index, MachineType machine_type, | 314 Node* object, Node* index, MachineType machine_type, |
310 int additional_offset = 0, | 315 int additional_offset = 0, |
311 ParameterMode parameter_mode = INTEGER_PARAMETERS, | 316 ParameterMode parameter_mode = INTEGER_PARAMETERS, |
312 Label* if_hole = nullptr); | 317 Label* if_hole = nullptr); |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1101 } | 1106 } |
1102 #else | 1107 #else |
1103 #define CSA_SLOW_ASSERT(csa, x) ((void)0) | 1108 #define CSA_SLOW_ASSERT(csa, x) ((void)0) |
1104 #endif | 1109 #endif |
1105 | 1110 |
1106 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); | 1111 DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
1107 | 1112 |
1108 } // namespace internal | 1113 } // namespace internal |
1109 } // namespace v8 | 1114 } // namespace v8 |
1110 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 1115 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
OLD | NEW |