| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3174 | 3174 |
| 3175 | 3175 |
| 3176 void Assembler::RecordComment(const char* msg, bool force) { | 3176 void Assembler::RecordComment(const char* msg, bool force) { |
| 3177 if (FLAG_code_comments || force) { | 3177 if (FLAG_code_comments || force) { |
| 3178 EnsureSpace ensure_space(this); | 3178 EnsureSpace ensure_space(this); |
| 3179 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3179 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
| 3180 } | 3180 } |
| 3181 } | 3181 } |
| 3182 | 3182 |
| 3183 | 3183 |
| 3184 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 3185 // No out-of-line constant pool support. |
| 3186 UNREACHABLE(); |
| 3187 } |
| 3188 |
| 3189 |
| 3184 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | | 3190 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | |
| 3185 1 << RelocInfo::RUNTIME_ENTRY | | 3191 1 << RelocInfo::RUNTIME_ENTRY | |
| 3186 1 << RelocInfo::INTERNAL_REFERENCE | | 3192 1 << RelocInfo::INTERNAL_REFERENCE | |
| 3187 1 << RelocInfo::CODE_AGE_SEQUENCE; | 3193 1 << RelocInfo::CODE_AGE_SEQUENCE; |
| 3188 | 3194 |
| 3189 | 3195 |
| 3190 bool RelocInfo::IsCodedSpecially() { | 3196 bool RelocInfo::IsCodedSpecially() { |
| 3191 // The deserializer needs to know whether a pointer is specially coded. Being | 3197 // The deserializer needs to know whether a pointer is specially coded. Being |
| 3192 // specially coded on x64 means that it is a relative 32 bit address, as used | 3198 // specially coded on x64 means that it is a relative 32 bit address, as used |
| 3193 // by branch instructions. | 3199 // by branch instructions. |
| 3194 return (1 << rmode_) & kApplyMask; | 3200 return (1 << rmode_) & kApplyMask; |
| 3195 } | 3201 } |
| 3196 | 3202 |
| 3197 | 3203 |
| 3198 bool RelocInfo::IsInConstantPool() { | 3204 bool RelocInfo::IsInConstantPool() { |
| 3199 return false; | 3205 return false; |
| 3200 } | 3206 } |
| 3201 | 3207 |
| 3202 | 3208 |
| 3203 } } // namespace v8::internal | 3209 } } // namespace v8::internal |
| 3204 | 3210 |
| 3205 #endif // V8_TARGET_ARCH_X64 | 3211 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |