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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 // Return the code target address of the patch debug break slot | 563 // Return the code target address of the patch debug break slot |
564 inline static Address break_address_from_return_address(Address pc); | 564 inline static Address break_address_from_return_address(Address pc); |
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 inline static void deserialization_set_target_internal_reference_at( |
| 574 Address instruction, Address target); |
| 575 |
573 static inline RelocInfo::Mode RelocInfoNone() { | 576 static inline RelocInfo::Mode RelocInfoNone() { |
574 if (kPointerSize == kInt64Size) { | 577 if (kPointerSize == kInt64Size) { |
575 return RelocInfo::NONE64; | 578 return RelocInfo::NONE64; |
576 } else { | 579 } else { |
577 DCHECK(kPointerSize == kInt32Size); | 580 DCHECK(kPointerSize == kInt32Size); |
578 return RelocInfo::NONE32; | 581 return RelocInfo::NONE32; |
579 } | 582 } |
580 } | 583 } |
581 | 584 |
582 inline Handle<Object> code_target_object_handle_at(Address pc); | 585 inline Handle<Object> code_target_object_handle_at(Address pc); |
(...skipping 1298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1881 private: | 1884 private: |
1882 Assembler* assembler_; | 1885 Assembler* assembler_; |
1883 #ifdef DEBUG | 1886 #ifdef DEBUG |
1884 int space_before_; | 1887 int space_before_; |
1885 #endif | 1888 #endif |
1886 }; | 1889 }; |
1887 | 1890 |
1888 } } // namespace v8::internal | 1891 } } // namespace v8::internal |
1889 | 1892 |
1890 #endif // V8_X64_ASSEMBLER_X64_H_ | 1893 #endif // V8_X64_ASSEMBLER_X64_H_ |
OLD | NEW |