| 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 #ifndef V8_X64_ASSEMBLER_X64_INL_H_ | 5 #ifndef V8_X64_ASSEMBLER_X64_INL_H_ |
| 6 #define V8_X64_ASSEMBLER_X64_INL_H_ | 6 #define V8_X64_ASSEMBLER_X64_INL_H_ |
| 7 | 7 |
| 8 #include "src/x64/assembler-x64.h" | 8 #include "src/x64/assembler-x64.h" |
| 9 | 9 |
| 10 #include "src/base/cpu.h" | 10 #include "src/base/cpu.h" |
| (...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 371 return Memory::Address_at(pc_); | 371 return Memory::Address_at(pc_); |
| 372 } | 372 } |
| 373 | 373 |
| 374 | 374 |
| 375 Address RelocInfo::target_internal_reference() { | 375 Address RelocInfo::target_internal_reference() { |
| 376 DCHECK(rmode_ == INTERNAL_REFERENCE); | 376 DCHECK(rmode_ == INTERNAL_REFERENCE); |
| 377 return Memory::Address_at(pc_); | 377 return Memory::Address_at(pc_); |
| 378 } | 378 } |
| 379 | 379 |
| 380 | 380 |
| 381 void RelocInfo::set_target_internal_reference(Address target) { | 381 void RelocInfo::set_target_internal_reference( |
| 382 Address target, ICacheFlushMode icache_flush_mode) { |
| 382 DCHECK(rmode_ == INTERNAL_REFERENCE); | 383 DCHECK(rmode_ == INTERNAL_REFERENCE); |
| 383 Memory::Address_at(pc_) = target; | 384 Memory::Address_at(pc_) = target; |
| 384 } | 385 } |
| 385 | 386 |
| 386 | 387 |
| 387 void RelocInfo::set_target_object(Object* target, | 388 void RelocInfo::set_target_object(Object* target, |
| 388 WriteBarrierMode write_barrier_mode, | 389 WriteBarrierMode write_barrier_mode, |
| 389 ICacheFlushMode icache_flush_mode) { | 390 ICacheFlushMode icache_flush_mode) { |
| 390 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); | 391 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
| 391 Memory::Object_at(pc_) = target; | 392 Memory::Object_at(pc_) = target; |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 | 636 |
| 636 void Operand::set_disp64(int64_t disp) { | 637 void Operand::set_disp64(int64_t disp) { |
| 637 DCHECK_EQ(1, len_); | 638 DCHECK_EQ(1, len_); |
| 638 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]); | 639 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]); |
| 639 *p = disp; | 640 *p = disp; |
| 640 len_ += sizeof(disp); | 641 len_ += sizeof(disp); |
| 641 } | 642 } |
| 642 } } // namespace v8::internal | 643 } } // namespace v8::internal |
| 643 | 644 |
| 644 #endif // V8_X64_ASSEMBLER_X64_INL_H_ | 645 #endif // V8_X64_ASSEMBLER_X64_INL_H_ |
| OLD | NEW |