Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/x64/assembler-x64-inl.h

Issue 2090983002: Revert of Reland [heap] Avoid the use of cells to point from code to new-space objects. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); 403 DCHECK(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT);
404 Memory::Object_at(pc_) = target; 404 Memory::Object_at(pc_) = target;
405 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 405 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
406 Assembler::FlushICache(isolate_, pc_, sizeof(Address)); 406 Assembler::FlushICache(isolate_, pc_, sizeof(Address));
407 } 407 }
408 if (write_barrier_mode == UPDATE_WRITE_BARRIER && 408 if (write_barrier_mode == UPDATE_WRITE_BARRIER &&
409 host() != NULL && 409 host() != NULL &&
410 target->IsHeapObject()) { 410 target->IsHeapObject()) {
411 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 411 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
412 host(), this, HeapObject::cast(target)); 412 host(), this, HeapObject::cast(target));
413 host()->GetHeap()->RecordWriteIntoCode(host(), this, target);
414 } 413 }
415 } 414 }
416 415
417 416
418 Address RelocInfo::target_runtime_entry(Assembler* origin) { 417 Address RelocInfo::target_runtime_entry(Assembler* origin) {
419 DCHECK(IsRuntimeEntry(rmode_)); 418 DCHECK(IsRuntimeEntry(rmode_));
420 return origin->runtime_entry_at(pc_); 419 return origin->runtime_entry_at(pc_);
421 } 420 }
422 421
423 422
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
609 void Operand::set_disp64(int64_t disp) { 608 void Operand::set_disp64(int64_t disp) {
610 DCHECK_EQ(1, len_); 609 DCHECK_EQ(1, len_);
611 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]); 610 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]);
612 *p = disp; 611 *p = disp;
613 len_ += sizeof(disp); 612 len_ += sizeof(disp);
614 } 613 }
615 } // namespace internal 614 } // namespace internal
616 } // namespace v8 615 } // namespace v8
617 616
618 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 617 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/macro-assembler-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698