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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 const int kEmbeddedObjectTag = 0; | 134 const int kEmbeddedObjectTag = 0; |
135 const int kCodeTargetTag = 1; | 135 const int kCodeTargetTag = 1; |
136 const int kPositionTag = 2; | 136 const int kPositionTag = 2; |
137 const int kDefaultTag = 3; | 137 const int kDefaultTag = 3; |
138 | 138 |
139 const int kPCJumpTag = (1 << kExtraTagBits) - 1; | 139 const int kPCJumpTag = (1 << kExtraTagBits) - 1; |
140 | 140 |
141 const int kSmallPCDeltaBits = kBitsPerByte - kTagBits; | 141 const int kSmallPCDeltaBits = kBitsPerByte - kTagBits; |
142 const int kSmallPCDeltaMask = (1 << kSmallPCDeltaBits) - 1; | 142 const int kSmallPCDeltaMask = (1 << kSmallPCDeltaBits) - 1; |
| 143 const int RelocInfo::kMaxSmallPCDelta = kSmallPCDeltaMask; |
143 | 144 |
144 const int kVariableLengthPCJumpTopTag = 1; | 145 const int kVariableLengthPCJumpTopTag = 1; |
145 const int kChunkBits = 7; | 146 const int kChunkBits = 7; |
146 const int kChunkMask = (1 << kChunkBits) - 1; | 147 const int kChunkMask = (1 << kChunkBits) - 1; |
147 const int kLastChunkTagBits = 1; | 148 const int kLastChunkTagBits = 1; |
148 const int kLastChunkTagMask = 1; | 149 const int kLastChunkTagMask = 1; |
149 const int kLastChunkTag = 1; | 150 const int kLastChunkTag = 1; |
150 | 151 |
151 | 152 |
152 const int kDataJumpTag = kPCJumpTag - 1; | 153 const int kDataJumpTag = kPCJumpTag - 1; |
(...skipping 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1053 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); | 1054 assembler_->RecordRelocInfo(RelocInfo::POSITION, state_.current_position); |
1054 state_.written_position = state_.current_position; | 1055 state_.written_position = state_.current_position; |
1055 written = true; | 1056 written = true; |
1056 } | 1057 } |
1057 | 1058 |
1058 // Return whether something was written. | 1059 // Return whether something was written. |
1059 return written; | 1060 return written; |
1060 } | 1061 } |
1061 | 1062 |
1062 } } // namespace v8::internal | 1063 } } // namespace v8::internal |
OLD | NEW |