| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 : -1; | 372 : -1; |
| 373 ASSERT((type == -1) || | 373 ASSERT((type == -1) || |
| 374 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); | 374 ((FIRST_IC_MARKER <= type) && (type < LAST_CODE_MARKER))); |
| 375 return type; | 375 return type; |
| 376 } | 376 } |
| 377 | 377 |
| 378 | 378 |
| 379 // --------------------------------------------------------------------------- | 379 // --------------------------------------------------------------------------- |
| 380 // Allocation support | 380 // Allocation support |
| 381 | 381 |
| 382 // Allocate an object in new space. The object_size is specified in words (not | 382 // Allocate an object in new space. The object_size is specified |
| 383 // bytes). If the new space is exhausted control continues at the gc_required | 383 // either in bytes or in words if the allocation flag SIZE_IN_WORDS |
| 384 // label. The allocated object is returned in result. If the flag | 384 // is passed. If the new space is exhausted control continues at the |
| 385 // tag_allocated_object is true the result is tagged as as a heap object. All | 385 // gc_required label. The allocated object is returned in result. If |
| 386 // registers are clobbered also when control continues at the gc_required | 386 // the flag tag_allocated_object is true the result is tagged as as |
| 387 // label. | 387 // a heap object. All registers are clobbered also when control |
| 388 // continues at the gc_required label. |
| 388 void AllocateInNewSpace(int object_size, | 389 void AllocateInNewSpace(int object_size, |
| 389 Register result, | 390 Register result, |
| 390 Register scratch1, | 391 Register scratch1, |
| 391 Register scratch2, | 392 Register scratch2, |
| 392 Label* gc_required, | 393 Label* gc_required, |
| 393 AllocationFlags flags); | 394 AllocationFlags flags); |
| 394 void AllocateInNewSpace(Register object_size, | 395 void AllocateInNewSpace(Register object_size, |
| 395 Register result, | 396 Register result, |
| 396 Register scratch1, | 397 Register scratch1, |
| 397 Register scratch2, | 398 Register scratch2, |
| (...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 820 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 820 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 821 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 821 #else | 822 #else |
| 822 #define ACCESS_MASM(masm) masm-> | 823 #define ACCESS_MASM(masm) masm-> |
| 823 #endif | 824 #endif |
| 824 | 825 |
| 825 | 826 |
| 826 } } // namespace v8::internal | 827 } } // namespace v8::internal |
| 827 | 828 |
| 828 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 829 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |