| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 } | 130 } |
| 131 | 131 |
| 132 | 132 |
| 133 inline bool CPURegister::Is(const CPURegister& other) const { | 133 inline bool CPURegister::Is(const CPURegister& other) const { |
| 134 ASSERT(IsValidOrNone() && other.IsValidOrNone()); | 134 ASSERT(IsValidOrNone() && other.IsValidOrNone()); |
| 135 return (code_ == other.code_) && (size_ == other.size_) && | 135 return (code_ == other.code_) && (size_ == other.size_) && |
| 136 (type_ == other.type_); | 136 (type_ == other.type_); |
| 137 } | 137 } |
| 138 | 138 |
| 139 | 139 |
| 140 inline bool CPURegister::is(const CPURegister& other) const { | |
| 141 return Is(other); | |
| 142 } | |
| 143 | |
| 144 | |
| 145 inline bool CPURegister::IsRegister() const { | 140 inline bool CPURegister::IsRegister() const { |
| 146 return type_ == kRegister; | 141 return type_ == kRegister; |
| 147 } | 142 } |
| 148 | 143 |
| 149 | 144 |
| 150 inline bool CPURegister::IsFPRegister() const { | 145 inline bool CPURegister::IsFPRegister() const { |
| 151 return type_ == kFPRegister; | 146 return type_ == kFPRegister; |
| 152 } | 147 } |
| 153 | 148 |
| 154 | 149 |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 | 681 |
| 687 void RelocInfo::set_target_cell(Cell* cell, WriteBarrierMode mode) { | 682 void RelocInfo::set_target_cell(Cell* cell, WriteBarrierMode mode) { |
| 688 UNIMPLEMENTED(); | 683 UNIMPLEMENTED(); |
| 689 } | 684 } |
| 690 | 685 |
| 691 | 686 |
| 692 static const int kCodeAgeSequenceSize = 5 * kInstructionSize; | 687 static const int kCodeAgeSequenceSize = 5 * kInstructionSize; |
| 693 static const int kCodeAgeStubEntryOffset = 3 * kInstructionSize; | 688 static const int kCodeAgeStubEntryOffset = 3 * kInstructionSize; |
| 694 | 689 |
| 695 | 690 |
| 691 Handle<Object> RelocInfo::code_age_stub_handle(Assembler* origin) { |
| 692 UNREACHABLE(); // This should never be reached on A64. |
| 693 return Handle<Object>(); |
| 694 } |
| 695 |
| 696 |
| 696 Code* RelocInfo::code_age_stub() { | 697 Code* RelocInfo::code_age_stub() { |
| 697 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); | 698 ASSERT(rmode_ == RelocInfo::CODE_AGE_SEQUENCE); |
| 698 ASSERT(!Code::IsYoungSequence(pc_)); | 699 ASSERT(!Code::IsYoungSequence(pc_)); |
| 699 // Read the stub entry point from the code age sequence. | 700 // Read the stub entry point from the code age sequence. |
| 700 Address stub_entry_address = pc_ + kCodeAgeStubEntryOffset; | 701 Address stub_entry_address = pc_ + kCodeAgeStubEntryOffset; |
| 701 return Code::GetCodeFromTargetAddress(Memory::Address_at(stub_entry_address)); | 702 return Code::GetCodeFromTargetAddress(Memory::Address_at(stub_entry_address)); |
| 702 } | 703 } |
| 703 | 704 |
| 704 | 705 |
| 705 void RelocInfo::set_code_age_stub(Code* stub) { | 706 void RelocInfo::set_code_age_stub(Code* stub) { |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1153 | 1154 |
| 1154 | 1155 |
| 1155 void Assembler::ClearRecordedAstId() { | 1156 void Assembler::ClearRecordedAstId() { |
| 1156 recorded_ast_id_ = TypeFeedbackId::None(); | 1157 recorded_ast_id_ = TypeFeedbackId::None(); |
| 1157 } | 1158 } |
| 1158 | 1159 |
| 1159 | 1160 |
| 1160 } } // namespace v8::internal | 1161 } } // namespace v8::internal |
| 1161 | 1162 |
| 1162 #endif // V8_A64_ASSEMBLER_A64_INL_H_ | 1163 #endif // V8_A64_ASSEMBLER_A64_INL_H_ |
| OLD | NEW |