| 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 658 : -1; | 658 : -1; |
| 659 ASSERT((type == -1) || | 659 ASSERT((type == -1) || |
| 660 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); | 660 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); |
| 661 return type; | 661 return type; |
| 662 } | 662 } |
| 663 | 663 |
| 664 | 664 |
| 665 // --------------------------------------------------------------------------- | 665 // --------------------------------------------------------------------------- |
| 666 // Allocation support | 666 // Allocation support |
| 667 | 667 |
| 668 // Allocate an object in new space. The object_size is specified | 668 // Allocate an object in new space or old pointer space. The object_size is |
| 669 // either in bytes or in words if the allocation flag SIZE_IN_WORDS | 669 // specified either in bytes or in words if the allocation flag SIZE_IN_WORDS |
| 670 // is passed. If the new space is exhausted control continues at the | 670 // is passed. If the space is exhausted control continues at the gc_required |
| 671 // gc_required label. The allocated object is returned in result. If | 671 // label. The allocated object is returned in result. If the flag |
| 672 // the flag tag_allocated_object is true the result is tagged as as | 672 // tag_allocated_object is true the result is tagged as as a heap object. |
| 673 // a heap object. All registers are clobbered also when control | 673 // All registers are clobbered also when control continues at the gc_required |
| 674 // continues at the gc_required label. | 674 // label. |
| 675 void AllocateInNewSpace(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 void AllocateInNewSpace(Register object_size, | 682 void AllocateInNewSpace(Register object_size, |
| 682 Register result, | 683 Register result, |
| 683 Register scratch1, | 684 Register scratch1, |
| 684 Register scratch2, | 685 Register scratch2, |
| 685 Label* gc_required, | 686 Label* gc_required, |
| 686 AllocationFlags flags); | 687 AllocationFlags flags); |
| 687 | 688 |
| 688 // 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 |
| 689 // 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 |
| 690 // 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 |
| (...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1431 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 1432 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 1432 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 1433 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 1433 #else | 1434 #else |
| 1434 #define ACCESS_MASM(masm) masm-> | 1435 #define ACCESS_MASM(masm) masm-> |
| 1435 #endif | 1436 #endif |
| 1436 | 1437 |
| 1437 | 1438 |
| 1438 } } // namespace v8::internal | 1439 } } // namespace v8::internal |
| 1439 | 1440 |
| 1440 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 1441 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |