| 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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 first.raw_data64() == second.raw_data64() : | 452 first.raw_data64() == second.raw_data64() : |
| 453 first.data() == second.data()); | 453 first.data() == second.data()); |
| 454 } | 454 } |
| 455 | 455 |
| 456 // Accessors | 456 // Accessors |
| 457 byte* pc() const { return pc_; } | 457 byte* pc() const { return pc_; } |
| 458 void set_pc(byte* pc) { pc_ = pc; } | 458 void set_pc(byte* pc) { pc_ = pc; } |
| 459 Mode rmode() const { return rmode_; } | 459 Mode rmode() const { return rmode_; } |
| 460 intptr_t data() const { return data_; } | 460 intptr_t data() const { return data_; } |
| 461 double data64() const { return data64_; } | 461 double data64() const { return data64_; } |
| 462 uint64_t raw_data64() { | 462 uint64_t raw_data64() { return bit_cast<uint64_t>(data64_); } |
| 463 return BitCast<uint64_t>(data64_); | |
| 464 } | |
| 465 Code* host() const { return host_; } | 463 Code* host() const { return host_; } |
| 466 void set_host(Code* host) { host_ = host; } | 464 void set_host(Code* host) { host_ = host; } |
| 467 | 465 |
| 468 // Apply a relocation by delta bytes | 466 // Apply a relocation by delta bytes |
| 469 INLINE(void apply(intptr_t delta, | 467 INLINE(void apply(intptr_t delta, |
| 470 ICacheFlushMode icache_flush_mode = | 468 ICacheFlushMode icache_flush_mode = |
| 471 FLUSH_ICACHE_IF_NEEDED)); | 469 FLUSH_ICACHE_IF_NEEDED)); |
| 472 | 470 |
| 473 // Is the pointer this relocation info refers to coded like a plain pointer | 471 // Is the pointer this relocation info refers to coded like a plain pointer |
| 474 // or is it strange in some way (e.g. relative or patched into a series of | 472 // or is it strange in some way (e.g. relative or patched into a series of |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1106 NullCallWrapper() { } | 1104 NullCallWrapper() { } |
| 1107 virtual ~NullCallWrapper() { } | 1105 virtual ~NullCallWrapper() { } |
| 1108 virtual void BeforeCall(int call_size) const { } | 1106 virtual void BeforeCall(int call_size) const { } |
| 1109 virtual void AfterCall() const { } | 1107 virtual void AfterCall() const { } |
| 1110 }; | 1108 }; |
| 1111 | 1109 |
| 1112 | 1110 |
| 1113 } } // namespace v8::internal | 1111 } } // namespace v8::internal |
| 1114 | 1112 |
| 1115 #endif // V8_ASSEMBLER_H_ | 1113 #endif // V8_ASSEMBLER_H_ |
| OLD | NEW |