| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 // Ensure that we _never_ overflow the next field. | 75 // Ensure that we _never_ overflow the next field. |
| 76 DCHECK(NextField::is_valid(Assembler::kMaximalBufferSize)); | 76 DCHECK(NextField::is_valid(Assembler::kMaximalBufferSize)); |
| 77 data_ = NextField::encode(next) | TypeField::encode(type); | 77 data_ = NextField::encode(next) | TypeField::encode(type); |
| 78 } | 78 } |
| 79 | 79 |
| 80 | 80 |
| 81 // ----------------------------------------------------------------------------- | 81 // ----------------------------------------------------------------------------- |
| 82 // Implementation of RelocInfo | 82 // Implementation of RelocInfo |
| 83 | 83 |
| 84 | 84 |
| 85 const int RelocInfo::kInternalReferenceMask = 1 |
| 86 << RelocInfo::INTERNAL_REFERENCE; |
| 85 const int RelocInfo::kApplyMask = | 87 const int RelocInfo::kApplyMask = |
| 86 RelocInfo::kCodeTargetMask | 1 << RelocInfo::RUNTIME_ENTRY | | 88 RelocInfo::kCodeTargetMask | RelocInfo::kInternalReferenceMask | |
| 87 1 << RelocInfo::JS_RETURN | 1 << RelocInfo::INTERNAL_REFERENCE | | 89 1 << RelocInfo::RUNTIME_ENTRY | 1 << RelocInfo::JS_RETURN | |
| 88 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE; | 90 1 << RelocInfo::DEBUG_BREAK_SLOT | 1 << RelocInfo::CODE_AGE_SEQUENCE; |
| 89 | 91 |
| 90 | 92 |
| 91 bool RelocInfo::IsCodedSpecially() { | 93 bool RelocInfo::IsCodedSpecially() { |
| 92 // The deserializer needs to know whether a pointer is specially coded. Being | 94 // The deserializer needs to know whether a pointer is specially coded. Being |
| 93 // specially coded on IA32 means that it is a relative address, as used by | 95 // specially coded on IA32 means that it is a relative address, as used by |
| 94 // branch instructions. These are also the ones that need changing when a | 96 // branch instructions. These are also the ones that need changing when a |
| 95 // code object moves. | 97 // code object moves. |
| 96 return (1 << rmode_) & kApplyMask; | 98 return (1 << rmode_) & kApplyMask; |
| 97 } | 99 } |
| (...skipping 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2083 fprintf(coverage_log, "%s\n", file_line); | 2085 fprintf(coverage_log, "%s\n", file_line); |
| 2084 fflush(coverage_log); | 2086 fflush(coverage_log); |
| 2085 } | 2087 } |
| 2086 } | 2088 } |
| 2087 | 2089 |
| 2088 #endif | 2090 #endif |
| 2089 | 2091 |
| 2090 } } // namespace v8::internal | 2092 } } // namespace v8::internal |
| 2091 | 2093 |
| 2092 #endif // V8_TARGET_ARCH_X87 | 2094 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |