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_IA32_MACRO_ASSEMBLER_IA32_H_ | 5 #ifndef V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
6 #define V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 6 #define V8_IA32_MACRO_ASSEMBLER_IA32_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 622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
633 Register scratch, Label* gc_required, AllocationFlags flags); | 633 Register scratch, Label* gc_required, AllocationFlags flags); |
634 | 634 |
635 void Allocate(int header_size, ScaleFactor element_size, | 635 void Allocate(int header_size, ScaleFactor element_size, |
636 Register element_count, RegisterValueType element_count_type, | 636 Register element_count, RegisterValueType element_count_type, |
637 Register result, Register result_end, Register scratch, | 637 Register result, Register result_end, Register scratch, |
638 Label* gc_required, AllocationFlags flags); | 638 Label* gc_required, AllocationFlags flags); |
639 | 639 |
640 void Allocate(Register object_size, Register result, Register result_end, | 640 void Allocate(Register object_size, Register result, Register result_end, |
641 Register scratch, Label* gc_required, AllocationFlags flags); | 641 Register scratch, Label* gc_required, AllocationFlags flags); |
642 | 642 |
| 643 // FastAllocate is right now only used for folded allocations. It just |
| 644 // increments the top pointer without checking against limit. This can only |
| 645 // be done if it was proved earlier that the allocation will succeed. |
| 646 void FastAllocate(int object_size, Register result, Register result_end, |
| 647 AllocationFlags flags); |
| 648 void FastAllocate(Register object_size, Register result, Register result_end, |
| 649 AllocationFlags flags); |
| 650 |
643 // Allocate a heap number in new space with undefined value. The | 651 // Allocate a heap number in new space with undefined value. The |
644 // register scratch2 can be passed as no_reg; the others must be | 652 // register scratch2 can be passed as no_reg; the others must be |
645 // valid registers. Returns tagged pointer in result register, or | 653 // valid registers. Returns tagged pointer in result register, or |
646 // jumps to gc_required if new space is full. | 654 // jumps to gc_required if new space is full. |
647 void AllocateHeapNumber(Register result, Register scratch1, Register scratch2, | 655 void AllocateHeapNumber(Register result, Register scratch1, Register scratch2, |
648 Label* gc_required, MutableMode mode = IMMUTABLE); | 656 Label* gc_required, MutableMode mode = IMMUTABLE); |
649 | 657 |
650 // Allocate a sequential string. All the header fields of the string object | 658 // Allocate a sequential string. All the header fields of the string object |
651 // are initialized. | 659 // are initialized. |
652 void AllocateTwoByteString(Register result, Register length, | 660 void AllocateTwoByteString(Register result, Register length, |
(...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1066 } \ | 1074 } \ |
1067 masm-> | 1075 masm-> |
1068 #else | 1076 #else |
1069 #define ACCESS_MASM(masm) masm-> | 1077 #define ACCESS_MASM(masm) masm-> |
1070 #endif | 1078 #endif |
1071 | 1079 |
1072 } // namespace internal | 1080 } // namespace internal |
1073 } // namespace v8 | 1081 } // namespace v8 |
1074 | 1082 |
1075 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1083 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |