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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 DCHECK(NextField::is_valid(Assembler::kMaximalBufferSize)); | 161 DCHECK(NextField::is_valid(Assembler::kMaximalBufferSize)); |
162 data_ = NextField::encode(next) | TypeField::encode(type); | 162 data_ = NextField::encode(next) | TypeField::encode(type); |
163 } | 163 } |
164 | 164 |
165 | 165 |
166 // ----------------------------------------------------------------------------- | 166 // ----------------------------------------------------------------------------- |
167 // Implementation of RelocInfo | 167 // Implementation of RelocInfo |
168 | 168 |
169 | 169 |
170 const int RelocInfo::kApplyMask = | 170 const int RelocInfo::kApplyMask = |
171 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | | 171 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | |
172 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | | 172 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | |
173 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE; | 173 1 << RelocInfo::CODE_AGE_SEQUENCE | RelocInfo::kDebugBreakSlotMask; |
174 | 174 |
175 | 175 |
176 bool RelocInfo::IsCodedSpecially() { | 176 bool RelocInfo::IsCodedSpecially() { |
177 // The deserializer needs to know whether a pointer is specially coded. Being | 177 // The deserializer needs to know whether a pointer is specially coded. Being |
178 // specially coded on IA32 means that it is a relative address, as used by | 178 // specially coded on IA32 means that it is a relative address, as used by |
179 // branch instructions. These are also the ones that need changing when a | 179 // branch instructions. These are also the ones that need changing when a |
180 // code object moves. | 180 // code object moves. |
181 return (1 << rmode_) & kApplyMask; | 181 return (1 << rmode_) & kApplyMask; |
182 } | 182 } |
183 | 183 |
(...skipping 2784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2968 fflush(coverage_log); | 2968 fflush(coverage_log); |
2969 } | 2969 } |
2970 } | 2970 } |
2971 | 2971 |
2972 #endif | 2972 #endif |
2973 | 2973 |
2974 } // namespace internal | 2974 } // namespace internal |
2975 } // namespace v8 | 2975 } // namespace v8 |
2976 | 2976 |
2977 #endif // V8_TARGET_ARCH_IA32 | 2977 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |