| 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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 Mode rmode() const { return rmode_; } | 182 Mode rmode() const { return rmode_; } |
| 183 intptr_t data() const { return data_; } | 183 intptr_t data() const { return data_; } |
| 184 | 184 |
| 185 // Apply a relocation by delta bytes | 185 // Apply a relocation by delta bytes |
| 186 INLINE(void apply(intptr_t delta)); | 186 INLINE(void apply(intptr_t delta)); |
| 187 | 187 |
| 188 // Read/modify the code target in the branch/call instruction | 188 // Read/modify the code target in the branch/call instruction |
| 189 // this relocation applies to; | 189 // this relocation applies to; |
| 190 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY | 190 // can only be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY |
| 191 INLINE(Address target_address()); | 191 INLINE(Address target_address()); |
| 192 INLINE(void set_target_address(Address target)); | 192 INLINE(void set_target_address(Address target, |
| 193 bool need_icache_flush = true)); |
| 193 INLINE(Object* target_object()); | 194 INLINE(Object* target_object()); |
| 194 INLINE(Handle<Object> target_object_handle(Assembler* origin)); | 195 INLINE(Handle<Object> target_object_handle(Assembler* origin)); |
| 195 INLINE(Object** target_object_address()); | 196 INLINE(Object** target_object_address()); |
| 196 INLINE(void set_target_object(Object* target)); | 197 INLINE(void set_target_object(Object* target, |
| 198 bool need_icache_flush = true)); |
| 197 | 199 |
| 198 // Read the address of the word containing the target_address. Can only | 200 // Read the address of the word containing the target_address. Can only |
| 199 // be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY. | 201 // be called if IsCodeTarget(rmode_) || rmode_ == RUNTIME_ENTRY. |
| 200 INLINE(Address target_address_address()); | 202 INLINE(Address target_address_address()); |
| 201 | 203 |
| 202 // Read/modify the reference in the instruction this relocation | 204 // Read/modify the reference in the instruction this relocation |
| 203 // applies to; can only be called if rmode_ is external_reference | 205 // applies to; can only be called if rmode_ is external_reference |
| 204 INLINE(Address* target_reference_address()); | 206 INLINE(Address* target_reference_address()); |
| 205 | 207 |
| 206 // Read/modify the address of a call instruction. This is used to relocate | 208 // Read/modify the address of a call instruction. This is used to relocate |
| (...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 unsigned int num_bits_set; | 539 unsigned int num_bits_set; |
| 538 for (num_bits_set = 0; x; x >>= 1) { | 540 for (num_bits_set = 0; x; x >>= 1) { |
| 539 num_bits_set += x & 1; | 541 num_bits_set += x & 1; |
| 540 } | 542 } |
| 541 return num_bits_set; | 543 return num_bits_set; |
| 542 } | 544 } |
| 543 | 545 |
| 544 } } // namespace v8::internal | 546 } } // namespace v8::internal |
| 545 | 547 |
| 546 #endif // V8_ASSEMBLER_H_ | 548 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |