| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 INLINE(void set_call_address(Address target)); | 210 INLINE(void set_call_address(Address target)); |
| 211 INLINE(Object* call_object()); | 211 INLINE(Object* call_object()); |
| 212 INLINE(Object** call_object_address()); | 212 INLINE(Object** call_object_address()); |
| 213 INLINE(void set_call_object(Object* target)); | 213 INLINE(void set_call_object(Object* target)); |
| 214 | 214 |
| 215 // Patch the code with some other code. | 215 // Patch the code with some other code. |
| 216 void PatchCode(byte* instructions, int instruction_count); | 216 void PatchCode(byte* instructions, int instruction_count); |
| 217 | 217 |
| 218 // Patch the code with a call. | 218 // Patch the code with a call. |
| 219 void PatchCodeWithCall(Address target, int guard_bytes); | 219 void PatchCodeWithCall(Address target, int guard_bytes); |
| 220 // Check whether the current instruction is currently a call | 220 |
| 221 // sequence (whether naturally or a return sequence overwritten | 221 // Check whether this return sequence has been patched |
| 222 // to enter the debugger). | 222 // with a call to the debugger. |
| 223 INLINE(bool IsCallInstruction()); | 223 INLINE(bool IsPatchedReturnSequence()); |
| 224 | 224 |
| 225 #ifdef ENABLE_DISASSEMBLER | 225 #ifdef ENABLE_DISASSEMBLER |
| 226 // Printing | 226 // Printing |
| 227 static const char* RelocModeName(Mode rmode); | 227 static const char* RelocModeName(Mode rmode); |
| 228 void Print(); | 228 void Print(); |
| 229 #endif // ENABLE_DISASSEMBLER | 229 #endif // ENABLE_DISASSEMBLER |
| 230 #ifdef DEBUG | 230 #ifdef DEBUG |
| 231 // Debugging | 231 // Debugging |
| 232 void Verify(); | 232 void Verify(); |
| 233 #endif | 233 #endif |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 static inline bool is_uint5(int x) { return is_uintn(x, 5); } | 492 static inline bool is_uint5(int x) { return is_uintn(x, 5); } |
| 493 static inline bool is_uint6(int x) { return is_uintn(x, 6); } | 493 static inline bool is_uint6(int x) { return is_uintn(x, 6); } |
| 494 static inline bool is_uint8(int x) { return is_uintn(x, 8); } | 494 static inline bool is_uint8(int x) { return is_uintn(x, 8); } |
| 495 static inline bool is_uint12(int x) { return is_uintn(x, 12); } | 495 static inline bool is_uint12(int x) { return is_uintn(x, 12); } |
| 496 static inline bool is_uint16(int x) { return is_uintn(x, 16); } | 496 static inline bool is_uint16(int x) { return is_uintn(x, 16); } |
| 497 static inline bool is_uint24(int x) { return is_uintn(x, 24); } | 497 static inline bool is_uint24(int x) { return is_uintn(x, 24); } |
| 498 | 498 |
| 499 } } // namespace v8::internal | 499 } } // namespace v8::internal |
| 500 | 500 |
| 501 #endif // V8_ASSEMBLER_H_ | 501 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |