| OLD | NEW |
| 1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-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 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 // Inline caching support | 313 // Inline caching support |
| 314 | 314 |
| 315 // Generate code for checking access rights - used for security checks | 315 // Generate code for checking access rights - used for security checks |
| 316 // on access to global objects across environments. The holder register | 316 // on access to global objects across environments. The holder register |
| 317 // is left untouched, whereas both scratch registers are clobbered. | 317 // is left untouched, whereas both scratch registers are clobbered. |
| 318 void CheckAccessGlobalProxy(Register holder_reg, | 318 void CheckAccessGlobalProxy(Register holder_reg, |
| 319 Register scratch, | 319 Register scratch, |
| 320 Label* miss); | 320 Label* miss); |
| 321 | 321 |
| 322 | 322 |
| 323 inline void MarkCode(NopMarkerTypes type) { |
| 324 nop(type); |
| 325 } |
| 326 |
| 327 |
| 328 static inline bool IsMarkedCode(Instr instr, NopMarkerTypes type) { |
| 329 return IsNop(instr, type); |
| 330 } |
| 331 |
| 332 |
| 323 // --------------------------------------------------------------------------- | 333 // --------------------------------------------------------------------------- |
| 324 // Allocation support | 334 // Allocation support |
| 325 | 335 |
| 326 // Allocate an object in new space. The object_size is specified in words (not | 336 // Allocate an object in new space. The object_size is specified in words (not |
| 327 // bytes). If the new space is exhausted control continues at the gc_required | 337 // bytes). If the new space is exhausted control continues at the gc_required |
| 328 // label. The allocated object is returned in result. If the flag | 338 // label. The allocated object is returned in result. If the flag |
| 329 // tag_allocated_object is true the result is tagged as as a heap object. All | 339 // tag_allocated_object is true the result is tagged as as a heap object. All |
| 330 // registers are clobbered also when control continues at the gc_required | 340 // registers are clobbered also when control continues at the gc_required |
| 331 // label. | 341 // label. |
| 332 void AllocateInNewSpace(int object_size, | 342 void AllocateInNewSpace(int object_size, |
| (...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 743 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) | 753 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) |
| 744 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> | 754 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> |
| 745 #else | 755 #else |
| 746 #define ACCESS_MASM(masm) masm-> | 756 #define ACCESS_MASM(masm) masm-> |
| 747 #endif | 757 #endif |
| 748 | 758 |
| 749 | 759 |
| 750 } } // namespace v8::internal | 760 } } // namespace v8::internal |
| 751 | 761 |
| 752 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ | 762 #endif // V8_ARM_MACRO_ASSEMBLER_ARM_H_ |
| OLD | NEW |