OLD | NEW |
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
2 // All Rights Reserved. | 2 // All Rights Reserved. |
3 // | 3 // |
4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
6 // met: | 6 // met: |
7 // | 7 // |
8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
10 // | 10 // |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 static const int kApplyMask; // Modes affected by apply. Depends on arch. | 341 static const int kApplyMask; // Modes affected by apply. Depends on arch. |
342 | 342 |
343 private: | 343 private: |
344 // On ARM, note that pc_ is the address of the constant pool entry | 344 // On ARM, note that pc_ is the address of the constant pool entry |
345 // to be relocated and not the address of the instruction | 345 // to be relocated and not the address of the instruction |
346 // referencing the constant pool entry (except when rmode_ == | 346 // referencing the constant pool entry (except when rmode_ == |
347 // comment). | 347 // comment). |
348 byte* pc_; | 348 byte* pc_; |
349 Mode rmode_; | 349 Mode rmode_; |
350 intptr_t data_; | 350 intptr_t data_; |
| 351 #ifdef V8_TARGET_ARCH_MIPS |
| 352 // Code and Embedded Object pointers in mips are stored split |
| 353 // across two consecutive 32-bit instructions. Heap management |
| 354 // routines expect to access these pointers indirectly. The following |
| 355 // location provides a place for these pointers to exist natually |
| 356 // when accessed via the Iterator. |
| 357 Object *reconstructed_obj_ptr_; |
| 358 // External-reference pointers are also split across instruction-pairs |
| 359 // in mips, but are accessed via indirect pointers. This location |
| 360 // provides a place for that pointer to exist naturally. Its address |
| 361 // is returned by RelocInfo::target_reference_address(). |
| 362 Address reconstructed_adr_ptr_; |
| 363 #endif // V8_TARGET_ARCH_MIPS |
351 friend class RelocIterator; | 364 friend class RelocIterator; |
352 }; | 365 }; |
353 | 366 |
354 | 367 |
355 // RelocInfoWriter serializes a stream of relocation info. It writes towards | 368 // RelocInfoWriter serializes a stream of relocation info. It writes towards |
356 // lower addresses. | 369 // lower addresses. |
357 class RelocInfoWriter BASE_EMBEDDED { | 370 class RelocInfoWriter BASE_EMBEDDED { |
358 public: | 371 public: |
359 RelocInfoWriter() : pos_(NULL), | 372 RelocInfoWriter() : pos_(NULL), |
360 last_pc_(NULL), | 373 last_pc_(NULL), |
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
836 public: | 849 public: |
837 NullCallWrapper() { } | 850 NullCallWrapper() { } |
838 virtual ~NullCallWrapper() { } | 851 virtual ~NullCallWrapper() { } |
839 virtual void BeforeCall(int call_size) const { } | 852 virtual void BeforeCall(int call_size) const { } |
840 virtual void AfterCall() const { } | 853 virtual void AfterCall() const { } |
841 }; | 854 }; |
842 | 855 |
843 } } // namespace v8::internal | 856 } } // namespace v8::internal |
844 | 857 |
845 #endif // V8_ASSEMBLER_H_ | 858 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |