| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 637 Label* gc_required, | 637 Label* gc_required, |
| 638 AllocationFlags flags); | 638 AllocationFlags flags); |
| 639 | 639 |
| 640 void Allocate(Register object_size, | 640 void Allocate(Register object_size, |
| 641 Register result, | 641 Register result, |
| 642 Register result_end, | 642 Register result_end, |
| 643 Register scratch, | 643 Register scratch, |
| 644 Label* gc_required, | 644 Label* gc_required, |
| 645 AllocationFlags flags); | 645 AllocationFlags flags); |
| 646 | 646 |
| 647 // Record a JS object allocation if allocations tracking mode is on. |
| 648 void RecordObjectAllocation(Isolate* isolate, |
| 649 Register object, |
| 650 Register object_size, |
| 651 Register scratch); |
| 652 |
| 653 void RecordObjectAllocation(Isolate* isolate, |
| 654 Register object, |
| 655 int object_size, |
| 656 Register scratch); |
| 657 |
| 658 void RecordObjectAllocation(Isolate* isolate, |
| 659 Register object, |
| 660 int header_size, |
| 661 ScaleFactor element_size, |
| 662 Register element_count, |
| 663 Register scratch); |
| 664 |
| 647 // Undo allocation in new space. The object passed and objects allocated after | 665 // Undo allocation in new space. The object passed and objects allocated after |
| 648 // it will no longer be allocated. Make sure that no pointers are left to the | 666 // it will no longer be allocated. Make sure that no pointers are left to the |
| 649 // object(s) no longer allocated as they would be invalid when allocation is | 667 // object(s) no longer allocated as they would be invalid when allocation is |
| 650 // un-done. | 668 // un-done. |
| 651 void UndoAllocationInNewSpace(Register object); | 669 void UndoAllocationInNewSpace(Register object); |
| 652 | 670 |
| 653 // Allocate a heap number in new space with undefined value. The | 671 // Allocate a heap number in new space with undefined value. The |
| 654 // register scratch2 can be passed as no_reg; the others must be | 672 // register scratch2 can be passed as no_reg; the others must be |
| 655 // valid registers. Returns tagged pointer in result register, or | 673 // valid registers. Returns tagged pointer in result register, or |
| 656 // jumps to gc_required if new space is full. | 674 // jumps to gc_required if new space is full. |
| (...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 } \ | 1132 } \ |
| 1115 masm-> | 1133 masm-> |
| 1116 #else | 1134 #else |
| 1117 #define ACCESS_MASM(masm) masm-> | 1135 #define ACCESS_MASM(masm) masm-> |
| 1118 #endif | 1136 #endif |
| 1119 | 1137 |
| 1120 | 1138 |
| 1121 } } // namespace v8::internal | 1139 } } // namespace v8::internal |
| 1122 | 1140 |
| 1123 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ | 1141 #endif // V8_IA32_MACRO_ASSEMBLER_IA32_H_ |
| OLD | NEW |