| 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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 last_position_ = 0; | 764 last_position_ = 0; |
| 765 code_age_sequence_ = NULL; | 765 code_age_sequence_ = NULL; |
| 766 if (mode_mask_ == 0) pos_ = end_; | 766 if (mode_mask_ == 0) pos_ = end_; |
| 767 next(); | 767 next(); |
| 768 } | 768 } |
| 769 | 769 |
| 770 | 770 |
| 771 // ----------------------------------------------------------------------------- | 771 // ----------------------------------------------------------------------------- |
| 772 // Implementation of RelocInfo | 772 // Implementation of RelocInfo |
| 773 | 773 |
| 774 bool RelocInfo::IsPatchedDebugBreakSlotSequence() { |
| 775 return DebugCodegen::DebugBreakSlotIsPatched(pc_); |
| 776 } |
| 774 | 777 |
| 775 #ifdef DEBUG | 778 #ifdef DEBUG |
| 776 bool RelocInfo::RequiresRelocation(const CodeDesc& desc) { | 779 bool RelocInfo::RequiresRelocation(const CodeDesc& desc) { |
| 777 // Ensure there are no code targets or embedded objects present in the | 780 // Ensure there are no code targets or embedded objects present in the |
| 778 // deoptimization entries, they would require relocation after code | 781 // deoptimization entries, they would require relocation after code |
| 779 // generation. | 782 // generation. |
| 780 int mode_mask = RelocInfo::kCodeTargetMask | | 783 int mode_mask = RelocInfo::kCodeTargetMask | |
| 781 RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT) | | 784 RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT) | |
| 782 RelocInfo::ModeMask(RelocInfo::CELL) | | 785 RelocInfo::ModeMask(RelocInfo::CELL) | |
| 783 RelocInfo::kApplyMask; | 786 RelocInfo::kApplyMask; |
| (...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 | 1936 |
| 1934 | 1937 |
| 1935 void Assembler::DataAlign(int m) { | 1938 void Assembler::DataAlign(int m) { |
| 1936 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 1939 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
| 1937 while ((pc_offset() & (m - 1)) != 0) { | 1940 while ((pc_offset() & (m - 1)) != 0) { |
| 1938 db(0); | 1941 db(0); |
| 1939 } | 1942 } |
| 1940 } | 1943 } |
| 1941 } // namespace internal | 1944 } // namespace internal |
| 1942 } // namespace v8 | 1945 } // namespace v8 |
| OLD | NEW |