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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 Label* gc_required, | 593 Label* gc_required, |
594 AllocationFlags flags); | 594 AllocationFlags flags); |
595 | 595 |
596 void Allocate(Register object_size, | 596 void Allocate(Register object_size, |
597 Register result, | 597 Register result, |
598 Register result_end, | 598 Register result_end, |
599 Register scratch, | 599 Register scratch, |
600 Label* gc_required, | 600 Label* gc_required, |
601 AllocationFlags flags); | 601 AllocationFlags flags); |
602 | 602 |
603 // Undo allocation in new space. The object passed and objects allocated after | |
604 // it will no longer be allocated. Make sure that no pointers are left to the | |
605 // object(s) no longer allocated as they would be invalid when allocation is | |
606 // un-done. | |
607 void UndoAllocationInNewSpace(Register object); | |
608 | |
609 // Allocate a heap number in new space with undefined value. The | 603 // Allocate a heap number in new space with undefined value. The |
610 // register scratch2 can be passed as no_reg; the others must be | 604 // register scratch2 can be passed as no_reg; the others must be |
611 // valid registers. Returns tagged pointer in result register, or | 605 // valid registers. Returns tagged pointer in result register, or |
612 // jumps to gc_required if new space is full. | 606 // jumps to gc_required if new space is full. |
613 void AllocateHeapNumber(Register result, | 607 void AllocateHeapNumber(Register result, |
614 Register scratch1, | 608 Register scratch1, |
615 Register scratch2, | 609 Register scratch2, |
616 Label* gc_required, | 610 Label* gc_required, |
617 MutableMode mode = IMMUTABLE); | 611 MutableMode mode = IMMUTABLE); |
618 | 612 |
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1051 } \ | 1045 } \ |
1052 masm-> | 1046 masm-> |
1053 #else | 1047 #else |
1054 #define ACCESS_MASM(masm) masm-> | 1048 #define ACCESS_MASM(masm) masm-> |
1055 #endif | 1049 #endif |
1056 | 1050 |
1057 | 1051 |
1058 } } // namespace v8::internal | 1052 } } // namespace v8::internal |
1059 | 1053 |
1060 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ | 1054 #endif // V8_X87_MACRO_ASSEMBLER_X87_H_ |
OLD | NEW |