| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/x64/assembler-x64.h" | 5 #include "src/x64/assembler-x64.h" |
| 6 | 6 |
| 7 #include <cstring> | 7 #include <cstring> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X64 | 9 #if V8_TARGET_ARCH_X64 |
| 10 | 10 |
| (...skipping 3449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3460 } | 3460 } |
| 3461 | 3461 |
| 3462 | 3462 |
| 3463 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { | 3463 void Assembler::PopulateConstantPool(ConstantPoolArray* constant_pool) { |
| 3464 // No out-of-line constant pool support. | 3464 // No out-of-line constant pool support. |
| 3465 DCHECK(!FLAG_enable_ool_constant_pool); | 3465 DCHECK(!FLAG_enable_ool_constant_pool); |
| 3466 return; | 3466 return; |
| 3467 } | 3467 } |
| 3468 | 3468 |
| 3469 | 3469 |
| 3470 const int RelocInfo::kApplyMask = RelocInfo::kCodeTargetMask | | 3470 const int RelocInfo::kInternalReferenceMask = 1 |
| 3471 1 << RelocInfo::RUNTIME_ENTRY | | 3471 << RelocInfo::INTERNAL_REFERENCE; |
| 3472 1 << RelocInfo::INTERNAL_REFERENCE | | 3472 const int RelocInfo::kApplyMask = |
| 3473 1 << RelocInfo::CODE_AGE_SEQUENCE; | 3473 RelocInfo::kCodeTargetMask | RelocInfo::kInternalReferenceMask | |
| 3474 1 << RelocInfo::RUNTIME_ENTRY | 1 << RelocInfo::CODE_AGE_SEQUENCE; |
| 3474 | 3475 |
| 3475 | 3476 |
| 3476 bool RelocInfo::IsCodedSpecially() { | 3477 bool RelocInfo::IsCodedSpecially() { |
| 3477 // The deserializer needs to know whether a pointer is specially coded. Being | 3478 // The deserializer needs to know whether a pointer is specially coded. Being |
| 3478 // specially coded on x64 means that it is a relative 32 bit address, as used | 3479 // specially coded on x64 means that it is a relative 32 bit address, as used |
| 3479 // by branch instructions. | 3480 // by branch instructions. |
| 3480 return (1 << rmode_) & kApplyMask; | 3481 return (1 << rmode_) & kApplyMask; |
| 3481 } | 3482 } |
| 3482 | 3483 |
| 3483 | 3484 |
| 3484 bool RelocInfo::IsInConstantPool() { | 3485 bool RelocInfo::IsInConstantPool() { |
| 3485 return false; | 3486 return false; |
| 3486 } | 3487 } |
| 3487 | 3488 |
| 3488 | 3489 |
| 3489 } } // namespace v8::internal | 3490 } } // namespace v8::internal |
| 3490 | 3491 |
| 3491 #endif // V8_TARGET_ARCH_X64 | 3492 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |