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

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

Issue 2021323003: [wasm] remove faux code objects Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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/x64/assembler-x64.cc ('k') | test/cctest/wasm/wasm-run-utils.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 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 return Assembler::kSpecialTargetSize; 345 return Assembler::kSpecialTargetSize;
346 } else { 346 } else {
347 return kPointerSize; 347 return kPointerSize;
348 } 348 }
349 } 349 }
350 350
351 351
352 void RelocInfo::set_target_address(Address target, 352 void RelocInfo::set_target_address(Address target,
353 WriteBarrierMode write_barrier_mode, 353 WriteBarrierMode write_barrier_mode,
354 ICacheFlushMode icache_flush_mode) { 354 ICacheFlushMode icache_flush_mode) {
355 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); 355 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) || IsWasmCall(rmode_));
356 Assembler::set_target_address_at(isolate_, pc_, host_, target, 356 Assembler::set_target_address_at(isolate_, pc_, host_, target,
357 icache_flush_mode); 357 icache_flush_mode);
358 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && 358 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
359 IsCodeTarget(rmode_)) { 359 IsCodeTarget(rmode_)) {
360 Object* target_code = Code::GetCodeFromTargetAddress(target); 360 Object* target_code = Code::GetCodeFromTargetAddress(target);
361 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 361 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
362 host(), this, HeapObject::cast(target_code)); 362 host(), this, HeapObject::cast(target_code));
363 } 363 }
364 } 364 }
365 365
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
608 void Operand::set_disp64(int64_t disp) { 608 void Operand::set_disp64(int64_t disp) {
609 DCHECK_EQ(1, len_); 609 DCHECK_EQ(1, len_);
610 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]); 610 int64_t* p = reinterpret_cast<int64_t*>(&buf_[len_]);
611 *p = disp; 611 *p = disp;
612 len_ += sizeof(disp); 612 len_ += sizeof(disp);
613 } 613 }
614 } // namespace internal 614 } // namespace internal
615 } // namespace v8 615 } // namespace v8
616 616
617 #endif // V8_X64_ASSEMBLER_X64_INL_H_ 617 #endif // V8_X64_ASSEMBLER_X64_INL_H_
OLDNEW
« no previous file with comments | « src/x64/assembler-x64.cc ('k') | test/cctest/wasm/wasm-run-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698