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 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 // tag_allocated_object is true the result is tagged as as a heap object. | 672 // tag_allocated_object is true the result is tagged as as a heap object. |
673 // All registers are clobbered also when control continues at the gc_required | 673 // All registers are clobbered also when control continues at the gc_required |
674 // label. | 674 // label. |
675 void Allocate(int object_size, | 675 void Allocate(int object_size, |
676 Register result, | 676 Register result, |
677 Register scratch1, | 677 Register scratch1, |
678 Register scratch2, | 678 Register scratch2, |
679 Label* gc_required, | 679 Label* gc_required, |
680 AllocationFlags flags); | 680 AllocationFlags flags); |
681 | 681 |
682 void AllocateInNewSpace(Register object_size, | 682 void Allocate(Register object_size, |
683 Register result, | 683 Register result, |
684 Register scratch1, | 684 Register scratch1, |
685 Register scratch2, | 685 Register scratch2, |
686 Label* gc_required, | 686 Label* gc_required, |
687 AllocationFlags flags); | 687 AllocationFlags flags); |
688 | 688 |
689 // Undo allocation in new space. The object passed and objects allocated after | 689 // Undo allocation in new space. The object passed and objects allocated after |
690 // it will no longer be allocated. The caller must make sure that no pointers | 690 // it will no longer be allocated. The caller must make sure that no pointers |
691 // are left to the object(s) no longer allocated as they would be invalid when | 691 // are left to the object(s) no longer allocated as they would be invalid when |
692 // allocation is undone. | 692 // allocation is undone. |
693 void UndoAllocationInNewSpace(Register object, Register scratch); | 693 void UndoAllocationInNewSpace(Register object, Register scratch); |
694 | 694 |
695 | 695 |
696 void AllocateTwoByteString(Register result, | 696 void AllocateTwoByteString(Register result, |
697 Register length, | 697 Register length, |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1439 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1439 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
1440 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1440 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
1441 #else | 1441 #else |
1442 #define ACCESS_MASM(masm) masm-> | 1442 #define ACCESS_MASM(masm) masm-> |
1443 #endif | 1443 #endif |
1444 | 1444 |
1445 | 1445 |
1446 } } // namespace v8::internal | 1446 } } // namespace v8::internal |
1447 | 1447 |
1448 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1448 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
OLD | NEW |