| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 // Allocation support | 451 // Allocation support |
| 452 | 452 |
| 453 // Allocate an object in new space. If the new space is exhausted control | 453 // Allocate an object in new space. If the new space is exhausted control |
| 454 // continues at the gc_required label. The allocated object is returned in | 454 // continues at the gc_required label. The allocated object is returned in |
| 455 // result and end of the new object is returned in result_end. The register | 455 // result and end of the new object is returned in result_end. The register |
| 456 // scratch can be passed as no_reg in which case an additional object | 456 // scratch can be passed as no_reg in which case an additional object |
| 457 // reference will be added to the reloc info. The returned pointers in result | 457 // reference will be added to the reloc info. The returned pointers in result |
| 458 // and result_end have not yet been tagged as heap objects. If | 458 // and result_end have not yet been tagged as heap objects. If |
| 459 // result_contains_top_on_entry is true the content of result is known to be | 459 // result_contains_top_on_entry is true the content of result is known to be |
| 460 // the allocation top on entry (could be result_end from a previous call to | 460 // the allocation top on entry (could be result_end from a previous call to |
| 461 // AllocateObjectInNewSpace). If result_contains_top_on_entry is true scratch | 461 // AllocateInNewSpace). If result_contains_top_on_entry is true scratch |
| 462 // should be no_reg as it is never used. | 462 // should be no_reg as it is never used. |
| 463 void AllocateObjectInNewSpace(int object_size, | 463 void AllocateInNewSpace(int object_size, |
| 464 Register result, | 464 Register result, |
| 465 Register result_end, | 465 Register result_end, |
| 466 Register scratch, | 466 Register scratch, |
| 467 Label* gc_required, | 467 Label* gc_required, |
| 468 AllocationFlags flags); | 468 AllocationFlags flags); |
| 469 | 469 |
| 470 void AllocateObjectInNewSpace(int header_size, | 470 void AllocateInNewSpace(int header_size, |
| 471 ScaleFactor element_size, | 471 ScaleFactor element_size, |
| 472 Register element_count, | 472 Register element_count, |
| 473 Register result, | 473 Register result, |
| 474 Register result_end, | 474 Register result_end, |
| 475 Register scratch, | 475 Register scratch, |
| 476 Label* gc_required, | 476 Label* gc_required, |
| 477 AllocationFlags flags); | 477 AllocationFlags flags); |
| 478 | 478 |
| 479 void AllocateObjectInNewSpace(Register object_size, | 479 void AllocateInNewSpace(Register object_size, |
| 480 Register result, | 480 Register result, |
| 481 Register result_end, | 481 Register result_end, |
| 482 Register scratch, | 482 Register scratch, |
| 483 Label* gc_required, | 483 Label* gc_required, |
| 484 AllocationFlags flags); | 484 AllocationFlags flags); |
| 485 | 485 |
| 486 // Undo allocation in new space. The object passed and objects allocated after | 486 // Undo allocation in new space. The object passed and objects allocated after |
| 487 // it will no longer be allocated. Make sure that no pointers are left to the | 487 // it will no longer be allocated. Make sure that no pointers are left to the |
| 488 // object(s) no longer allocated as they would be invalid when allocation is | 488 // object(s) no longer allocated as they would be invalid when allocation is |
| 489 // un-done. | 489 // un-done. |
| 490 void UndoAllocationInNewSpace(Register object); | 490 void UndoAllocationInNewSpace(Register object); |
| 491 | 491 |
| 492 // --------------------------------------------------------------------------- | 492 // --------------------------------------------------------------------------- |
| 493 // Support functions. | 493 // Support functions. |
| 494 | 494 |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 676 } \ | 676 } \ |
| 677 masm-> | 677 masm-> |
| 678 #else | 678 #else |
| 679 #define ACCESS_MASM(masm) masm-> | 679 #define ACCESS_MASM(masm) masm-> |
| 680 #endif | 680 #endif |
| 681 | 681 |
| 682 | 682 |
| 683 } } // namespace v8::internal | 683 } } // namespace v8::internal |
| 684 | 684 |
| 685 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ | 685 #endif // V8_X64_MACRO_ASSEMBLER_X64_H_ |
| OLD | NEW |