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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 byte* pc() const { return pc_; } | 264 byte* pc() const { return pc_; } |
265 void set_pc(byte* pc) { pc_ = pc; } | 265 void set_pc(byte* pc) { pc_ = pc; } |
266 Mode rmode() const { return rmode_; } | 266 Mode rmode() const { return rmode_; } |
267 intptr_t data() const { return data_; } | 267 intptr_t data() const { return data_; } |
268 Code* host() const { return host_; } | 268 Code* host() const { return host_; } |
269 | 269 |
270 // Apply a relocation by delta bytes | 270 // Apply a relocation by delta bytes |
271 INLINE(void apply(intptr_t delta)); | 271 INLINE(void apply(intptr_t delta)); |
272 | 272 |
273 // Is the pointer this relocation info refers to coded like a plain pointer | 273 // Is the pointer this relocation info refers to coded like a plain pointer |
274 // or is it strange in some way (eg relative or patched into a series of | 274 // or is it strange in some way (e.g. relative or patched into a series of |
275 // instructions). | 275 // instructions). |
276 bool IsCodedSpecially(); | 276 bool IsCodedSpecially(); |
277 | 277 |
278 // Read/modify the code target in the branch/call instruction | 278 // Read/modify the code target in the branch/call instruction |
279 // this relocation applies to; | 279 // this relocation applies to; |
280 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY | 280 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY |
281 INLINE(Address target_address()); | 281 INLINE(Address target_address()); |
282 INLINE(void set_target_address(Address target, | 282 INLINE(void set_target_address(Address target, |
283 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); | 283 WriteBarrierMode mode = UPDATE_WRITE_BARRIER)); |
284 INLINE(Object* target_object()); | 284 INLINE(Object* target_object()); |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 public: | 874 public: |
875 NullCallWrapper() { } | 875 NullCallWrapper() { } |
876 virtual ~NullCallWrapper() { } | 876 virtual ~NullCallWrapper() { } |
877 virtual void BeforeCall(int call_size) const { } | 877 virtual void BeforeCall(int call_size) const { } |
878 virtual void AfterCall() const { } | 878 virtual void AfterCall() const { } |
879 }; | 879 }; |
880 | 880 |
881 } } // namespace v8::internal | 881 } } // namespace v8::internal |
882 | 882 |
883 #endif // V8_ASSEMBLER_H_ | 883 #endif // V8_ASSEMBLER_H_ |
OLD | NEW |