Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Side by Side Diff: src/assembler.h

Issue 17376: Avoiding the assumption that the pc pointer of RelocInfo points to the word c... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/assembler-arm-inl.h » ('j') | src/serialize.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 223
224 // Accessors 224 // Accessors
225 byte* pc() const { return pc_; } 225 byte* pc() const { return pc_; }
226 void set_pc(byte* pc) { pc_ = pc; } 226 void set_pc(byte* pc) { pc_ = pc; }
227 Mode rmode() const { return rmode_; } 227 Mode rmode() const { return rmode_; }
228 intptr_t data() const { return data_; } 228 intptr_t data() const { return data_; }
229 229
230 // Apply a relocation by delta bytes 230 // Apply a relocation by delta bytes
231 INLINE(void apply(int delta)); 231 INLINE(void apply(int delta));
232 232
233 // Read/modify the code target in the branch/call instruction this relocation 233 // Read/modify the code target in the branch/call instruction
234 // applies to; can only be called if IsCodeTarget(rmode_) 234 // this relocation applies to;
235 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY
235 INLINE(Address target_address()); 236 INLINE(Address target_address());
236 INLINE(void set_target_address(Address target)); 237 INLINE(void set_target_address(Address target));
237 INLINE(Object* target_object()); 238 INLINE(Object* target_object());
238 INLINE(Object** target_object_address()); 239 INLINE(Object** target_object_address());
239 INLINE(void set_target_object(Object* target)); 240 INLINE(void set_target_object(Object* target));
240 241
242 // Read the address of the word containing the target_address. Can only
243 // be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY.
244 INLINE(Address target_address_address());
245
241 // Read/modify the reference in the instruction this relocation 246 // Read/modify the reference in the instruction this relocation
242 // applies to; can only be called if rmode_ is external_reference 247 // applies to; can only be called if rmode_ is external_reference
243 INLINE(Address* target_reference_address()); 248 INLINE(Address* target_reference_address());
244 249
245 // Read/modify the address of a call instruction. This is used to relocate 250 // Read/modify the address of a call instruction. This is used to relocate
246 // the break points where straight-line code is patched with a call 251 // the break points where straight-line code is patched with a call
247 // instruction. 252 // instruction.
248 INLINE(Address call_address()); 253 INLINE(Address call_address());
249 INLINE(void set_call_address(Address target)); 254 INLINE(void set_call_address(Address target));
250 INLINE(Object* call_object()); 255 INLINE(Object* call_object());
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 static inline bool is_uint4(int x) { return is_uintn(x, 4); } 494 static inline bool is_uint4(int x) { return is_uintn(x, 4); }
490 static inline bool is_uint5(int x) { return is_uintn(x, 5); } 495 static inline bool is_uint5(int x) { return is_uintn(x, 5); }
491 static inline bool is_uint8(int x) { return is_uintn(x, 8); } 496 static inline bool is_uint8(int x) { return is_uintn(x, 8); }
492 static inline bool is_uint12(int x) { return is_uintn(x, 12); } 497 static inline bool is_uint12(int x) { return is_uintn(x, 12); }
493 static inline bool is_uint16(int x) { return is_uintn(x, 16); } 498 static inline bool is_uint16(int x) { return is_uintn(x, 16); }
494 static inline bool is_uint24(int x) { return is_uintn(x, 24); } 499 static inline bool is_uint24(int x) { return is_uintn(x, 24); }
495 500
496 } } // namespace v8::internal 501 } } // namespace v8::internal
497 502
498 #endif // V8_ASSEMBLER_H_ 503 #endif // V8_ASSEMBLER_H_
OLDNEW
« no previous file with comments | « no previous file | src/assembler-arm-inl.h » ('j') | src/serialize.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698