Chromium Code Reviews| 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 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1042 Register key, | 1042 Register key, |
| 1043 Register r0, | 1043 Register r0, |
| 1044 Register r1, | 1044 Register r1, |
| 1045 Register r2, | 1045 Register r2, |
| 1046 Register result); | 1046 Register result); |
| 1047 | 1047 |
| 1048 | 1048 |
| 1049 // --------------------------------------------------------------------------- | 1049 // --------------------------------------------------------------------------- |
| 1050 // Allocation support | 1050 // Allocation support |
| 1051 | 1051 |
| 1052 void RecordObjectAllocation(Isolate* isolate, | |
| 1053 Register object, | |
| 1054 Register object_size); | |
| 1055 | |
| 1056 void RecordObjectAllocation(Isolate* isolate, | |
| 1057 Register object, | |
| 1058 int object_size); | |
|
Hannes Payer (out of office)
2013/08/28 09:51:32
Can we move these methods after the Allocate(...)
Alexandra Mikhaylova
2013/09/19 16:03:38
Done.
| |
| 1059 | |
| 1052 // Allocate an object in new space or old pointer space. If the given space | 1060 // Allocate an object in new space or old pointer space. If the given space |
| 1053 // is exhausted control continues at the gc_required label. The allocated | 1061 // is exhausted control continues at the gc_required label. The allocated |
| 1054 // object is returned in result and end of the new object is returned in | 1062 // object is returned in result and end of the new object is returned in |
| 1055 // result_end. The register scratch can be passed as no_reg in which case | 1063 // result_end. The register scratch can be passed as no_reg in which case |
| 1056 // an additional object reference will be added to the reloc info. The | 1064 // an additional object reference will be added to the reloc info. The |
| 1057 // returned pointers in result and result_end have not yet been tagged as | 1065 // returned pointers in result and result_end have not yet been tagged as |
| 1058 // heap objects. If result_contains_top_on_entry is true the content of | 1066 // heap objects. If result_contains_top_on_entry is true the content of |
| 1059 // result is known to be the allocation top on entry (could be result_end | 1067 // result is known to be the allocation top on entry (could be result_end |
| 1060 // from a previous call). If result_contains_top_on_entry is true scratch | 1068 // from a previous call). If result_contains_top_on_entry is true scratch |
| 1061 // should be no_reg as it is never used. | 1069 // should be no_reg as it is never used. |
| (...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1543 masm->popfq(); \ | 1551 masm->popfq(); \ |
| 1544 } \ | 1552 } \ |
| 1545 masm-> | 1553 masm-> |
| 1546 #else | 1554 #else |
| 1547 #define ACCESS_MASM(masm) masm-> | 1555 #define ACCESS_MASM(masm) masm-> |
| 1548 #endif | 1556 #endif |
| 1549 | 1557 |
| 1550 } } // namespace v8::internal | 1558 } } // namespace v8::internal |
| 1551 | 1559 |
| 1552 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 1560 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |