| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 compiler::Node* HeapNumberMapConstant(); | 45 compiler::Node* HeapNumberMapConstant(); |
| 46 compiler::Node* NoContextConstant(); | 46 compiler::Node* NoContextConstant(); |
| 47 compiler::Node* NanConstant(); | 47 compiler::Node* NanConstant(); |
| 48 compiler::Node* NullConstant(); | 48 compiler::Node* NullConstant(); |
| 49 compiler::Node* MinusZeroConstant(); | 49 compiler::Node* MinusZeroConstant(); |
| 50 compiler::Node* UndefinedConstant(); | 50 compiler::Node* UndefinedConstant(); |
| 51 compiler::Node* TheHoleConstant(); | 51 compiler::Node* TheHoleConstant(); |
| 52 compiler::Node* HashSeed(); | 52 compiler::Node* HashSeed(); |
| 53 compiler::Node* StaleRegisterConstant(); | 53 compiler::Node* StaleRegisterConstant(); |
| 54 | 54 |
| 55 compiler::Node* IntPtrOrSmiConstant(int value, ParameterMode mode); |
| 56 |
| 55 // Float64 operations. | 57 // Float64 operations. |
| 56 compiler::Node* Float64Ceil(compiler::Node* x); | 58 compiler::Node* Float64Ceil(compiler::Node* x); |
| 57 compiler::Node* Float64Floor(compiler::Node* x); | 59 compiler::Node* Float64Floor(compiler::Node* x); |
| 58 compiler::Node* Float64Round(compiler::Node* x); | 60 compiler::Node* Float64Round(compiler::Node* x); |
| 59 compiler::Node* Float64Trunc(compiler::Node* x); | 61 compiler::Node* Float64Trunc(compiler::Node* x); |
| 60 | 62 |
| 61 // Tag a Word as a Smi value. | 63 // Tag a Word as a Smi value. |
| 62 compiler::Node* SmiTag(compiler::Node* value); | 64 compiler::Node* SmiTag(compiler::Node* value); |
| 63 // Untag a Smi value as a Word. | 65 // Untag a Smi value as a Word. |
| 64 compiler::Node* SmiUntag(compiler::Node* value); | 66 compiler::Node* SmiUntag(compiler::Node* value); |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 compiler::Node* LoadMap(compiler::Node* object); | 174 compiler::Node* LoadMap(compiler::Node* object); |
| 173 // Load the instance type of an HeapObject. | 175 // Load the instance type of an HeapObject. |
| 174 compiler::Node* LoadInstanceType(compiler::Node* object); | 176 compiler::Node* LoadInstanceType(compiler::Node* object); |
| 175 // Checks that given heap object has given instance type. | 177 // Checks that given heap object has given instance type. |
| 176 void AssertInstanceType(compiler::Node* object, InstanceType instance_type); | 178 void AssertInstanceType(compiler::Node* object, InstanceType instance_type); |
| 177 // Load the properties backing store of a JSObject. | 179 // Load the properties backing store of a JSObject. |
| 178 compiler::Node* LoadProperties(compiler::Node* object); | 180 compiler::Node* LoadProperties(compiler::Node* object); |
| 179 // Load the elements backing store of a JSObject. | 181 // Load the elements backing store of a JSObject. |
| 180 compiler::Node* LoadElements(compiler::Node* object); | 182 compiler::Node* LoadElements(compiler::Node* object); |
| 181 // Load the length of a fixed array base instance. | 183 // Load the length of a fixed array base instance. |
| 184 compiler::Node* LoadFixedArrayBaseLength(compiler::Node* array); |
| 185 // Load the length of a fixed array base instance. |
| 182 compiler::Node* LoadAndUntagFixedArrayBaseLength(compiler::Node* array); | 186 compiler::Node* LoadAndUntagFixedArrayBaseLength(compiler::Node* array); |
| 183 // Load the bit field of a Map. | 187 // Load the bit field of a Map. |
| 184 compiler::Node* LoadMapBitField(compiler::Node* map); | 188 compiler::Node* LoadMapBitField(compiler::Node* map); |
| 185 // Load bit field 2 of a map. | 189 // Load bit field 2 of a map. |
| 186 compiler::Node* LoadMapBitField2(compiler::Node* map); | 190 compiler::Node* LoadMapBitField2(compiler::Node* map); |
| 187 // Load bit field 3 of a map. | 191 // Load bit field 3 of a map. |
| 188 compiler::Node* LoadMapBitField3(compiler::Node* map); | 192 compiler::Node* LoadMapBitField3(compiler::Node* map); |
| 189 // Load the instance type of a map. | 193 // Load the instance type of a map. |
| 190 compiler::Node* LoadMapInstanceType(compiler::Node* map); | 194 compiler::Node* LoadMapInstanceType(compiler::Node* map); |
| 191 // Load the instance descriptors of a map. | 195 // Load the instance descriptors of a map. |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 compiler::Node* AllocateSeqTwoByteString(int length); | 278 compiler::Node* AllocateSeqTwoByteString(int length); |
| 275 compiler::Node* AllocateSeqTwoByteString(compiler::Node* context, | 279 compiler::Node* AllocateSeqTwoByteString(compiler::Node* context, |
| 276 compiler::Node* length); | 280 compiler::Node* length); |
| 277 // Allocated an JSArray | 281 // Allocated an JSArray |
| 278 compiler::Node* AllocateJSArray(ElementsKind kind, compiler::Node* array_map, | 282 compiler::Node* AllocateJSArray(ElementsKind kind, compiler::Node* array_map, |
| 279 compiler::Node* capacity, | 283 compiler::Node* capacity, |
| 280 compiler::Node* length, | 284 compiler::Node* length, |
| 281 compiler::Node* allocation_site = nullptr, | 285 compiler::Node* allocation_site = nullptr, |
| 282 ParameterMode mode = INTEGER_PARAMETERS); | 286 ParameterMode mode = INTEGER_PARAMETERS); |
| 283 | 287 |
| 288 compiler::Node* AllocateFixedArray(ElementsKind kind, |
| 289 compiler::Node* capacity, |
| 290 ParameterMode mode = INTEGER_PARAMETERS); |
| 291 |
| 292 void FillFixedArrayWithHole(ElementsKind kind, compiler::Node* array, |
| 293 compiler::Node* from_index, |
| 294 compiler::Node* to_index, |
| 295 ParameterMode mode = INTEGER_PARAMETERS); |
| 296 |
| 297 void CopyFixedArrayElements( |
| 298 ElementsKind kind, compiler::Node* from_array, compiler::Node* to_array, |
| 299 compiler::Node* element_count, |
| 300 WriteBarrierMode barrier_mode = UPDATE_WRITE_BARRIER, |
| 301 ParameterMode mode = INTEGER_PARAMETERS); |
| 302 |
| 303 compiler::Node* CalculateNewElementsCapacity( |
| 304 compiler::Node* old_capacity, ParameterMode mode = INTEGER_PARAMETERS); |
| 305 |
| 306 compiler::Node* CheckAndGrowElementsCapacity(compiler::Node* context, |
| 307 compiler::Node* elements, |
| 308 ElementsKind kind, |
| 309 compiler::Node* key, |
| 310 Label* fail); |
| 311 |
| 284 // Allocation site manipulation | 312 // Allocation site manipulation |
| 285 void InitializeAllocationMemento(compiler::Node* base_allocation, | 313 void InitializeAllocationMemento(compiler::Node* base_allocation, |
| 286 int base_allocation_size, | 314 int base_allocation_size, |
| 287 compiler::Node* allocation_site); | 315 compiler::Node* allocation_site); |
| 288 | 316 |
| 289 compiler::Node* TruncateTaggedToFloat64(compiler::Node* context, | 317 compiler::Node* TruncateTaggedToFloat64(compiler::Node* context, |
| 290 compiler::Node* value); | 318 compiler::Node* value); |
| 291 compiler::Node* TruncateTaggedToWord32(compiler::Node* context, | 319 compiler::Node* TruncateTaggedToWord32(compiler::Node* context, |
| 292 compiler::Node* value); | 320 compiler::Node* value); |
| 293 // Truncate the floating point value of a HeapNumber to an Int32. | 321 // Truncate the floating point value of a HeapNumber to an Int32. |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 AllocationFlags flags, | 564 AllocationFlags flags, |
| 537 compiler::Node* top_adddress, | 565 compiler::Node* top_adddress, |
| 538 compiler::Node* limit_address); | 566 compiler::Node* limit_address); |
| 539 | 567 |
| 540 static const int kElementLoopUnrollThreshold = 8; | 568 static const int kElementLoopUnrollThreshold = 8; |
| 541 }; | 569 }; |
| 542 | 570 |
| 543 } // namespace internal | 571 } // namespace internal |
| 544 } // namespace v8 | 572 } // namespace v8 |
| 545 #endif // V8_CODE_STUB_ASSEMBLER_H_ | 573 #endif // V8_CODE_STUB_ASSEMBLER_H_ |
| OLD | NEW |