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_X87_MACRO_ASSEMBLER_X87_H_ | 5 #ifndef V8_X87_MACRO_ASSEMBLER_X87_H_ |
6 #define V8_X87_MACRO_ASSEMBLER_X87_H_ | 6 #define V8_X87_MACRO_ASSEMBLER_X87_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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
622 Register scratch, Label* gc_required, AllocationFlags flags); | 622 Register scratch, Label* gc_required, AllocationFlags flags); |
623 | 623 |
624 void Allocate(int header_size, ScaleFactor element_size, | 624 void Allocate(int header_size, ScaleFactor element_size, |
625 Register element_count, RegisterValueType element_count_type, | 625 Register element_count, RegisterValueType element_count_type, |
626 Register result, Register result_end, Register scratch, | 626 Register result, Register result_end, Register scratch, |
627 Label* gc_required, AllocationFlags flags); | 627 Label* gc_required, AllocationFlags flags); |
628 | 628 |
629 void Allocate(Register object_size, Register result, Register result_end, | 629 void Allocate(Register object_size, Register result, Register result_end, |
630 Register scratch, Label* gc_required, AllocationFlags flags); | 630 Register scratch, Label* gc_required, AllocationFlags flags); |
631 | 631 |
| 632 // FastAllocate is right now only used for folded allocations. It just |
| 633 // increments the top pointer without checking against limit. This can only |
| 634 // be done if it was proved earlier that the allocation will succeed. |
632 void FastAllocate(int object_size, Register result, Register result_end, | 635 void FastAllocate(int object_size, Register result, Register result_end, |
633 AllocationFlags flags); | 636 AllocationFlags flags); |
634 void FastAllocate(Register object_size, Register result, Register result_end, | 637 void FastAllocate(Register object_size, Register result, Register result_end, |
635 AllocationFlags flags); | 638 AllocationFlags flags); |
636 | 639 |
637 // Allocate a heap number in new space with undefined value. The | 640 // Allocate a heap number in new space with undefined value. The |
638 // register scratch2 can be passed as no_reg; the others must be | 641 // register scratch2 can be passed as no_reg; the others must be |
639 // valid registers. Returns tagged pointer in result register, or | 642 // valid registers. Returns tagged pointer in result register, or |
640 // jumps to gc_required if new space is full. | 643 // jumps to gc_required if new space is full. |
641 void AllocateHeapNumber(Register result, Register scratch1, Register scratch2, | 644 void AllocateHeapNumber(Register result, Register scratch1, Register scratch2, |
(...skipping 408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1050 } \ | 1053 } \ |
1051 masm-> | 1054 masm-> |
1052 #else | 1055 #else |
1053 #define ACCESS_MASM(masm) masm-> | 1056 #define ACCESS_MASM(masm) masm-> |
1054 #endif | 1057 #endif |
1055 | 1058 |
1056 } // namespace internal | 1059 } // namespace internal |
1057 } // namespace v8 | 1060 } // namespace v8 |
1058 | 1061 |
1059 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1062 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |