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/frames.h" | 9 #include "src/frames.h" |
10 #include "src/globals.h" | 10 #include "src/globals.h" |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
631 // un-done. | 631 // un-done. |
632 void UndoAllocationInNewSpace(Register object); | 632 void UndoAllocationInNewSpace(Register object); |
633 | 633 |
634 // Allocate a heap number in new space with undefined value. The | 634 // Allocate a heap number in new space with undefined value. The |
635 // register scratch2 can be passed as no_reg; the others must be | 635 // register scratch2 can be passed as no_reg; the others must be |
636 // valid registers. Returns tagged pointer in result register, or | 636 // valid registers. Returns tagged pointer in result register, or |
637 // jumps to gc_required if new space is full. | 637 // jumps to gc_required if new space is full. |
638 void AllocateHeapNumber(Register result, | 638 void AllocateHeapNumber(Register result, |
639 Register scratch1, | 639 Register scratch1, |
640 Register scratch2, | 640 Register scratch2, |
641 Label* gc_required); | 641 Label* gc_required, |
| 642 MutableMode mode = IMMUTABLE); |
642 | 643 |
643 // Allocate a sequential string. All the header fields of the string object | 644 // Allocate a sequential string. All the header fields of the string object |
644 // are initialized. | 645 // are initialized. |
645 void AllocateTwoByteString(Register result, | 646 void AllocateTwoByteString(Register result, |
646 Register length, | 647 Register length, |
647 Register scratch1, | 648 Register scratch1, |
648 Register scratch2, | 649 Register scratch2, |
649 Register scratch3, | 650 Register scratch3, |
650 Label* gc_required); | 651 Label* gc_required); |
651 void AllocateAsciiString(Register result, | 652 void AllocateAsciiString(Register result, |
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 } \ | 1108 } \ |
1108 masm-> | 1109 masm-> |
1109 #else | 1110 #else |
1110 #define ACCESS_MASM(masm) masm-> | 1111 #define ACCESS_MASM(masm) masm-> |
1111 #endif | 1112 #endif |
1112 | 1113 |
1113 | 1114 |
1114 } } // namespace v8::internal | 1115 } } // namespace v8::internal |
1115 | 1116 |
1116 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1117 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
OLD | NEW |