| 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 } | 162 } |
| 163 | 163 |
| 164 | 164 |
| 165 // ----------------------------------------------------------------------------- | 165 // ----------------------------------------------------------------------------- |
| 166 // Implementation of RelocInfo | 166 // Implementation of RelocInfo |
| 167 | 167 |
| 168 | 168 |
| 169 const int RelocInfo::kApplyMask = | 169 const int RelocInfo::kApplyMask = |
| 170 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | | 170 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | |
| 171 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | | 171 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | |
| 172 1 << RelocInfo::DEBUG_BREAK_SLOT; | 172 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE; |
| 173 | 173 |
| 174 | 174 |
| 175 bool RelocInfo::IsCodedSpecially() { | 175 bool RelocInfo::IsCodedSpecially() { |
| 176 // The deserializer needs to know whether a pointer is specially coded. Being | 176 // The deserializer needs to know whether a pointer is specially coded. Being |
| 177 // specially coded on IA32 means that it is a relative address, as used by | 177 // specially coded on IA32 means that it is a relative address, as used by |
| 178 // branch instructions. These are also the ones that need changing when a | 178 // branch instructions. These are also the ones that need changing when a |
| 179 // code object moves. | 179 // code object moves. |
| 180 return (1 << rmode_) & kApplyMask; | 180 return (1 << rmode_) & kApplyMask; |
| 181 } | 181 } |
| 182 | 182 |
| (...skipping 2482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2665 fprintf(coverage_log, "%s\n", file_line); | 2665 fprintf(coverage_log, "%s\n", file_line); |
| 2666 fflush(coverage_log); | 2666 fflush(coverage_log); |
| 2667 } | 2667 } |
| 2668 } | 2668 } |
| 2669 | 2669 |
| 2670 #endif | 2670 #endif |
| 2671 | 2671 |
| 2672 } } // namespace v8::internal | 2672 } } // namespace v8::internal |
| 2673 | 2673 |
| 2674 #endif // V8_TARGET_ARCH_IA32 | 2674 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |