| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 // 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 |
| 251 // 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 |
| 252 // instruction. | 252 // instruction. |
| 253 INLINE(Address call_address()); | 253 INLINE(Address call_address()); |
| 254 INLINE(void set_call_address(Address target)); | 254 INLINE(void set_call_address(Address target)); |
| 255 INLINE(Object* call_object()); | 255 INLINE(Object* call_object()); |
| 256 INLINE(Object** call_object_address()); | 256 INLINE(Object** call_object_address()); |
| 257 INLINE(void set_call_object(Object* target)); | 257 INLINE(void set_call_object(Object* target)); |
| 258 | 258 |
| 259 // Patch the code with some other code. | 259 // Patch the code with some other code. |
| 260 void patch_code(byte* instructions, int instruction_count); | 260 void PatchCode(byte* instructions, int instruction_count); |
| 261 | 261 |
| 262 // Patch the code with a call. | 262 // Patch the code with a call. |
| 263 void patch_code_with_call(Address target, int guard_bytes); | 263 void PatchCodeWithCall(Address target, int guard_bytes); |
| 264 INLINE(bool is_call_instruction()); | 264 INLINE(bool IsCallInstruction()); |
| 265 | 265 |
| 266 #ifdef ENABLE_DISASSEMBLER | 266 #ifdef ENABLE_DISASSEMBLER |
| 267 // Printing | 267 // Printing |
| 268 static const char* RelocModeName(Mode rmode); | 268 static const char* RelocModeName(Mode rmode); |
| 269 void Print(); | 269 void Print(); |
| 270 #endif // ENABLE_DISASSEMBLER | 270 #endif // ENABLE_DISASSEMBLER |
| 271 #ifdef DEBUG | 271 #ifdef DEBUG |
| 272 // Debugging | 272 // Debugging |
| 273 void Verify(); | 273 void Verify(); |
| 274 #endif | 274 #endif |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 494 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); } |
| 495 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); } |
| 496 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); } |
| 497 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); } |
| 498 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); } |
| 499 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); } |
| 500 | 500 |
| 501 } } // namespace v8::internal | 501 } } // namespace v8::internal |
| 502 | 502 |
| 503 #endif // V8_ASSEMBLER_H_ | 503 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |