| 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_X64_MACRO_ASSEMBLER_X64_H_ | 5 #ifndef V8_X64_MACRO_ASSEMBLER_X64_H_ |
| 6 #define V8_X64_MACRO_ASSEMBLER_X64_H_ | 6 #define V8_X64_MACRO_ASSEMBLER_X64_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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1133 Register key, | 1133 Register key, |
| 1134 Register r0, | 1134 Register r0, |
| 1135 Register r1, | 1135 Register r1, |
| 1136 Register r2, | 1136 Register r2, |
| 1137 Register result); | 1137 Register result); |
| 1138 | 1138 |
| 1139 | 1139 |
| 1140 // --------------------------------------------------------------------------- | 1140 // --------------------------------------------------------------------------- |
| 1141 // Allocation support | 1141 // Allocation support |
| 1142 | 1142 |
| 1143 // Allocate an object in new space or old pointer space. If the given space | 1143 // Allocate an object in new space or old space. If the given space |
| 1144 // is exhausted control continues at the gc_required label. The allocated | 1144 // is exhausted control continues at the gc_required label. The allocated |
| 1145 // object is returned in result and end of the new object is returned in | 1145 // object is returned in result and end of the new object is returned in |
| 1146 // result_end. The register scratch can be passed as no_reg in which case | 1146 // result_end. The register scratch can be passed as no_reg in which case |
| 1147 // an additional object reference will be added to the reloc info. The | 1147 // an additional object reference will be added to the reloc info. The |
| 1148 // returned pointers in result and result_end have not yet been tagged as | 1148 // returned pointers in result and result_end have not yet been tagged as |
| 1149 // heap objects. If result_contains_top_on_entry is true the content of | 1149 // heap objects. If result_contains_top_on_entry is true the content of |
| 1150 // result is known to be the allocation top on entry (could be result_end | 1150 // result is known to be the allocation top on entry (could be result_end |
| 1151 // from a previous call). If result_contains_top_on_entry is true scratch | 1151 // from a previous call). If result_contains_top_on_entry is true scratch |
| 1152 // should be no_reg as it is never used. | 1152 // should be no_reg as it is never used. |
| 1153 void Allocate(int object_size, | 1153 void Allocate(int object_size, |
| (...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 masm->popfq(); \ | 1622 masm->popfq(); \ |
| 1623 } \ | 1623 } \ |
| 1624 masm-> | 1624 masm-> |
| 1625 #else | 1625 #else |
| 1626 #define ACCESS_MASM(masm) masm-> | 1626 #define ACCESS_MASM(masm) masm-> |
| 1627 #endif | 1627 #endif |
| 1628 | 1628 |
| 1629 } } // namespace v8::internal | 1629 } } // namespace v8::internal |
| 1630 | 1630 |
| 1631 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1631 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |