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 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 | 565 |
566 // This sets the branch destination (which is in the instruction on x64). | 566 // This sets the branch destination (which is in the instruction on x64). |
567 // This is for calls and branches within generated code. | 567 // This is for calls and branches within generated code. |
568 inline static void deserialization_set_special_target_at( | 568 inline static void deserialization_set_special_target_at( |
569 Address instruction_payload, Code* code, Address target) { | 569 Address instruction_payload, Code* code, Address target) { |
570 set_target_address_at(instruction_payload, code, target); | 570 set_target_address_at(instruction_payload, code, target); |
571 } | 571 } |
572 | 572 |
573 // This sets the internal reference at the pc. | 573 // This sets the internal reference at the pc. |
574 inline static void deserialization_set_target_internal_reference_at( | 574 inline static void deserialization_set_target_internal_reference_at( |
575 Address instruction, Address target); | 575 Address pc, Address target, |
| 576 RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE); |
576 | 577 |
577 static inline RelocInfo::Mode RelocInfoNone() { | 578 static inline RelocInfo::Mode RelocInfoNone() { |
578 if (kPointerSize == kInt64Size) { | 579 if (kPointerSize == kInt64Size) { |
579 return RelocInfo::NONE64; | 580 return RelocInfo::NONE64; |
580 } else { | 581 } else { |
581 DCHECK(kPointerSize == kInt32Size); | 582 DCHECK(kPointerSize == kInt32Size); |
582 return RelocInfo::NONE32; | 583 return RelocInfo::NONE32; |
583 } | 584 } |
584 } | 585 } |
585 | 586 |
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1885 private: | 1886 private: |
1886 Assembler* assembler_; | 1887 Assembler* assembler_; |
1887 #ifdef DEBUG | 1888 #ifdef DEBUG |
1888 int space_before_; | 1889 int space_before_; |
1889 #endif | 1890 #endif |
1890 }; | 1891 }; |
1891 | 1892 |
1892 } } // namespace v8::internal | 1893 } } // namespace v8::internal |
1893 | 1894 |
1894 #endif // V8_X64_ASSEMBLER_X64_H_ | 1895 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |