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 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1114 Label* gc_required, | 1114 Label* gc_required, |
1115 AllocationFlags flags); | 1115 AllocationFlags flags); |
1116 | 1116 |
1117 void Allocate(Register object_size, | 1117 void Allocate(Register object_size, |
1118 Register result, | 1118 Register result, |
1119 Register result_end, | 1119 Register result_end, |
1120 Register scratch, | 1120 Register scratch, |
1121 Label* gc_required, | 1121 Label* gc_required, |
1122 AllocationFlags flags); | 1122 AllocationFlags flags); |
1123 | 1123 |
1124 // Record a JS object allocation if allocations tracking | |
Hannes Payer (out of office)
2013/10/02 18:00:29
Should fit in one line.
Alexandra Mikhaylova
2013/10/03 16:27:55
Done.
| |
1125 // mode is on. | |
1126 void RecordObjectAllocation(Isolate* isolate, | |
1127 Register object, | |
1128 Register object_size); | |
1129 | |
1130 void RecordObjectAllocation(Isolate* isolate, | |
1131 Register object, | |
1132 int object_size); | |
1133 | |
1124 // Undo allocation in new space. The object passed and objects allocated after | 1134 // Undo allocation in new space. The object passed and objects allocated after |
1125 // it will no longer be allocated. Make sure that no pointers are left to the | 1135 // it will no longer be allocated. Make sure that no pointers are left to the |
1126 // object(s) no longer allocated as they would be invalid when allocation is | 1136 // object(s) no longer allocated as they would be invalid when allocation is |
1127 // un-done. | 1137 // un-done. |
1128 void UndoAllocationInNewSpace(Register object); | 1138 void UndoAllocationInNewSpace(Register object); |
1129 | 1139 |
1130 // Allocate a heap number in new space with undefined value. Returns | 1140 // Allocate a heap number in new space with undefined value. Returns |
1131 // tagged pointer in result register, or jumps to gc_required if new | 1141 // tagged pointer in result register, or jumps to gc_required if new |
1132 // space is full. | 1142 // space is full. |
1133 void AllocateHeapNumber(Register result, | 1143 void AllocateHeapNumber(Register result, |
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1582 masm->popfq(); \ | 1592 masm->popfq(); \ |
1583 } \ | 1593 } \ |
1584 masm-> | 1594 masm-> |
1585 #else | 1595 #else |
1586 #define ACCESS_MASM(masm) masm-> | 1596 #define ACCESS_MASM(masm) masm-> |
1587 #endif | 1597 #endif |
1588 | 1598 |
1589 } } // namespace v8::internal | 1599 } } // namespace v8::internal |
1590 | 1600 |
1591 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1601 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
OLD | NEW |