| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM_MACRO_ASSEMBLER_ARM_H_ | 5 #ifndef V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 6 #define V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| 7 | 7 |
| 8 #include "src/assembler.h" | 8 #include "src/assembler.h" |
| 9 #include "src/bailout-reason.h" | 9 #include "src/bailout-reason.h" |
| 10 #include "src/frames.h" | 10 #include "src/frames.h" |
| (...skipping 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 | 780 |
| 781 // FastAllocate is right now only used for folded allocations. It just | 781 // FastAllocate is right now only used for folded allocations. It just |
| 782 // increments the top pointer without checking against limit. This can only | 782 // increments the top pointer without checking against limit. This can only |
| 783 // be done if it was proved earlier that the allocation will succeed. | 783 // be done if it was proved earlier that the allocation will succeed. |
| 784 void FastAllocate(int object_size, Register result, Register scratch1, | 784 void FastAllocate(int object_size, Register result, Register scratch1, |
| 785 Register scratch2, AllocationFlags flags); | 785 Register scratch2, AllocationFlags flags); |
| 786 | 786 |
| 787 void FastAllocate(Register object_size, Register result, Register result_end, | 787 void FastAllocate(Register object_size, Register result, Register result_end, |
| 788 Register scratch, AllocationFlags flags); | 788 Register scratch, AllocationFlags flags); |
| 789 | 789 |
| 790 void AllocateTwoByteString(Register result, | |
| 791 Register length, | |
| 792 Register scratch1, | |
| 793 Register scratch2, | |
| 794 Register scratch3, | |
| 795 Label* gc_required); | |
| 796 void AllocateOneByteString(Register result, Register length, | |
| 797 Register scratch1, Register scratch2, | |
| 798 Register scratch3, Label* gc_required); | |
| 799 void AllocateTwoByteConsString(Register result, | |
| 800 Register length, | |
| 801 Register scratch1, | |
| 802 Register scratch2, | |
| 803 Label* gc_required); | |
| 804 void AllocateOneByteConsString(Register result, Register length, | |
| 805 Register scratch1, Register scratch2, | |
| 806 Label* gc_required); | |
| 807 void AllocateTwoByteSlicedString(Register result, | |
| 808 Register length, | |
| 809 Register scratch1, | |
| 810 Register scratch2, | |
| 811 Label* gc_required); | |
| 812 void AllocateOneByteSlicedString(Register result, Register length, | |
| 813 Register scratch1, Register scratch2, | |
| 814 Label* gc_required); | |
| 815 | |
| 816 // Allocates a heap number or jumps to the gc_required label if the young | 790 // Allocates a heap number or jumps to the gc_required label if the young |
| 817 // space is full and a scavenge is needed. All registers are clobbered also | 791 // space is full and a scavenge is needed. All registers are clobbered also |
| 818 // when control continues at the gc_required label. | 792 // when control continues at the gc_required label. |
| 819 void AllocateHeapNumber(Register result, | 793 void AllocateHeapNumber(Register result, |
| 820 Register scratch1, | 794 Register scratch1, |
| 821 Register scratch2, | 795 Register scratch2, |
| 822 Register heap_number_map, | 796 Register heap_number_map, |
| 823 Label* gc_required, | 797 Label* gc_required, |
| 824 MutableMode mode = IMMUTABLE); | 798 MutableMode mode = IMMUTABLE); |
| 825 void AllocateHeapNumberWithValue(Register result, | 799 void AllocateHeapNumberWithValue(Register result, |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1339 Register scratch1, | 1313 Register scratch1, |
| 1340 Register scratch2, | 1314 Register scratch2, |
| 1341 Label* not_flat_one_byte_strings); | 1315 Label* not_flat_one_byte_strings); |
| 1342 | 1316 |
| 1343 // Checks if both instance types are sequential one-byte strings and jumps to | 1317 // Checks if both instance types are sequential one-byte strings and jumps to |
| 1344 // label if either is not. | 1318 // label if either is not. |
| 1345 void JumpIfBothInstanceTypesAreNotSequentialOneByte( | 1319 void JumpIfBothInstanceTypesAreNotSequentialOneByte( |
| 1346 Register first_object_instance_type, Register second_object_instance_type, | 1320 Register first_object_instance_type, Register second_object_instance_type, |
| 1347 Register scratch1, Register scratch2, Label* failure); | 1321 Register scratch1, Register scratch2, Label* failure); |
| 1348 | 1322 |
| 1349 // Check if instance type is sequential one-byte string and jump to label if | |
| 1350 // it is not. | |
| 1351 void JumpIfInstanceTypeIsNotSequentialOneByte(Register type, Register scratch, | |
| 1352 Label* failure); | |
| 1353 | |
| 1354 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); | 1323 void JumpIfNotUniqueNameInstanceType(Register reg, Label* not_unique_name); |
| 1355 | 1324 |
| 1356 void EmitSeqStringSetCharCheck(Register string, | 1325 void EmitSeqStringSetCharCheck(Register string, |
| 1357 Register index, | 1326 Register index, |
| 1358 Register value, | 1327 Register value, |
| 1359 uint32_t encoding_mask); | 1328 uint32_t encoding_mask); |
| 1360 | 1329 |
| 1361 | 1330 |
| 1362 void ClampUint8(Register output_reg, Register input_reg); | 1331 void ClampUint8(Register output_reg, Register input_reg); |
| 1363 | 1332 |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1543 inline MemOperand NativeContextMemOperand() { | 1512 inline MemOperand NativeContextMemOperand() { |
| 1544 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); | 1513 return ContextMemOperand(cp, Context::NATIVE_CONTEXT_INDEX); |
| 1545 } | 1514 } |
| 1546 | 1515 |
| 1547 #define ACCESS_MASM(masm) masm-> | 1516 #define ACCESS_MASM(masm) masm-> |
| 1548 | 1517 |
| 1549 } // namespace internal | 1518 } // namespace internal |
| 1550 } // namespace v8 | 1519 } // namespace v8 |
| 1551 | 1520 |
| 1552 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1521 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |