| 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 3181 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3192 | 3192 | 
| 3193 | 3193 | 
| 3194 void Assembler::RecordComment(const char* msg, bool force) { | 3194 void Assembler::RecordComment(const char* msg, bool force) { | 
| 3195   if (FLAG_code_comments || force) { | 3195   if (FLAG_code_comments || force) { | 
| 3196     EnsureSpace ensure_space(this); | 3196     EnsureSpace ensure_space(this); | 
| 3197     RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 3197     RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 
| 3198   } | 3198   } | 
| 3199 } | 3199 } | 
| 3200 | 3200 | 
| 3201 | 3201 | 
|  | 3202 MaybeObject* Assembler::AllocateConstantPool(Heap* heap) { | 
|  | 3203   // No out-of-line constant pool support. | 
|  | 3204   UNREACHABLE(); | 
|  | 3205   return NULL; | 
|  | 3206 } | 
|  | 3207 | 
|  | 3208 | 
|  | 3209 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 
|  | 3210   // No out-of-line constant pool support. | 
|  | 3211   UNREACHABLE(); | 
|  | 3212 } | 
|  | 3213 | 
|  | 3214 | 
| 3202 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | | 3215 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | | 
| 3203     1 << RelocInfo::RUNTIME_ENTRY | | 3216     1 << RelocInfo::RUNTIME_ENTRY | | 
| 3204     1 << RelocInfo::INTERNAL_REFERENCE | | 3217     1 << RelocInfo::INTERNAL_REFERENCE | | 
| 3205     1 << RelocInfo::CODE_AGE_SEQUENCE; | 3218     1 << RelocInfo::CODE_AGE_SEQUENCE; | 
| 3206 | 3219 | 
| 3207 | 3220 | 
| 3208 bool RelocInfo::IsCodedSpecially() { | 3221 bool RelocInfo::IsCodedSpecially() { | 
| 3209   // The deserializer needs to know whether a pointer is specially coded.  Being | 3222   // The deserializer needs to know whether a pointer is specially coded.  Being | 
| 3210   // specially coded on x64 means that it is a relative 32 bit address, as used | 3223   // specially coded on x64 means that it is a relative 32 bit address, as used | 
| 3211   // by branch instructions. | 3224   // by branch instructions. | 
| 3212   return (1 << rmode_) & kApplyMask; | 3225   return (1 << rmode_) & kApplyMask; | 
| 3213 } | 3226 } | 
| 3214 | 3227 | 
| 3215 | 3228 | 
| 3216 bool RelocInfo::IsInConstantPool() { | 3229 bool RelocInfo::IsInConstantPool() { | 
| 3217   return false; | 3230   return false; | 
| 3218 } | 3231 } | 
| 3219 | 3232 | 
| 3220 | 3233 | 
| 3221 } }  // namespace v8::internal | 3234 } }  // namespace v8::internal | 
| 3222 | 3235 | 
| 3223 #endif  // V8_TARGET_ARCH_X64 | 3236 #endif  // V8_TARGET_ARCH_X64 | 
| OLD | NEW | 
|---|