| 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 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 628 Label* gc_required, | 628 Label* gc_required, |
| 629 AllocationFlags flags); | 629 AllocationFlags flags); |
| 630 | 630 |
| 631 void Allocate(Register object_size, | 631 void Allocate(Register object_size, |
| 632 Register result, | 632 Register result, |
| 633 Register result_end, | 633 Register result_end, |
| 634 Register scratch, | 634 Register scratch, |
| 635 Label* gc_required, | 635 Label* gc_required, |
| 636 AllocationFlags flags); | 636 AllocationFlags flags); |
| 637 | 637 |
| 638 // Undo allocation in new space. The object passed and objects allocated after | |
| 639 // it will no longer be allocated. Make sure that no pointers are left to the | |
| 640 // object(s) no longer allocated as they would be invalid when allocation is | |
| 641 // un-done. | |
| 642 void UndoAllocationInNewSpace(Register object); | |
| 643 | |
| 644 // Allocate a heap number in new space with undefined value. The | 638 // Allocate a heap number in new space with undefined value. The |
| 645 // register scratch2 can be passed as no_reg; the others must be | 639 // register scratch2 can be passed as no_reg; the others must be |
| 646 // valid registers. Returns tagged pointer in result register, or | 640 // valid registers. Returns tagged pointer in result register, or |
| 647 // jumps to gc_required if new space is full. | 641 // jumps to gc_required if new space is full. |
| 648 void AllocateHeapNumber(Register result, | 642 void AllocateHeapNumber(Register result, |
| 649 Register scratch1, | 643 Register scratch1, |
| 650 Register scratch2, | 644 Register scratch2, |
| 651 Label* gc_required, | 645 Label* gc_required, |
| 652 MutableMode mode = IMMUTABLE); | 646 MutableMode mode = IMMUTABLE); |
| 653 | 647 |
| (...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1097 } \ | 1091 } \ |
| 1098 masm-> | 1092 masm-> |
| 1099 #else | 1093 #else |
| 1100 #define ACCESS_MASM(masm) masm-> | 1094 #define ACCESS_MASM(masm) masm-> |
| 1101 #endif | 1095 #endif |
| 1102 | 1096 |
| 1103 | 1097 |
| 1104 } } // namespace v8::internal | 1098 } } // namespace v8::internal |
| 1105 | 1099 |
| 1106 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1100 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |