| 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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 | 227 |
| 228 // Read/modify the address of a call instruction. This is used to relocate | 228 // Read/modify the address of a call instruction. This is used to relocate |
| 229 // the break points where straight-line code is patched with a call | 229 // the break points where straight-line code is patched with a call |
| 230 // instruction. | 230 // instruction. |
| 231 INLINE(Address call_address()); | 231 INLINE(Address call_address()); |
| 232 INLINE(void set_call_address(Address target)); | 232 INLINE(void set_call_address(Address target)); |
| 233 INLINE(Object* call_object()); | 233 INLINE(Object* call_object()); |
| 234 INLINE(void set_call_object(Object* target)); | 234 INLINE(void set_call_object(Object* target)); |
| 235 INLINE(Object** call_object_address()); | 235 INLINE(Object** call_object_address()); |
| 236 | 236 |
| 237 template<typename StaticVisitor> inline void Visit(); | 237 template<typename StaticVisitor> inline void Visit(Heap* heap); |
| 238 inline void Visit(ObjectVisitor* v); | 238 inline void Visit(ObjectVisitor* v); |
| 239 | 239 |
| 240 // Patch the code with some other code. | 240 // Patch the code with some other code. |
| 241 void PatchCode(byte* instructions, int instruction_count); | 241 void PatchCode(byte* instructions, int instruction_count); |
| 242 | 242 |
| 243 // Patch the code with a call. | 243 // Patch the code with a call. |
| 244 void PatchCodeWithCall(Address target, int guard_bytes); | 244 void PatchCodeWithCall(Address target, int guard_bytes); |
| 245 | 245 |
| 246 // Check whether this return sequence has been patched | 246 // Check whether this return sequence has been patched |
| 247 // with a call to the debugger. | 247 // with a call to the debugger. |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 unsigned int num_bits_set; | 567 unsigned int num_bits_set; |
| 568 for (num_bits_set = 0; x; x >>= 1) { | 568 for (num_bits_set = 0; x; x >>= 1) { |
| 569 num_bits_set += x & 1; | 569 num_bits_set += x & 1; |
| 570 } | 570 } |
| 571 return num_bits_set; | 571 return num_bits_set; |
| 572 } | 572 } |
| 573 | 573 |
| 574 } } // namespace v8::internal | 574 } } // namespace v8::internal |
| 575 | 575 |
| 576 #endif // V8_ASSEMBLER_H_ | 576 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |