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

Side by Side Diff: src/arm64/assembler-arm64-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/arm64/assembler-arm64.cc ('k') | src/assembler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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_ARM64_ASSEMBLER_ARM64_INL_H_ 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_INL_H_
6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_ 6 #define V8_ARM64_ASSEMBLER_ARM64_INL_H_
7 7
8 #include "src/arm64/assembler-arm64.h" 8 #include "src/arm64/assembler-arm64.h"
9 #include "src/assembler.h" 9 #include "src/assembler.h"
10 #include "src/debug/debug.h" 10 #include "src/debug/debug.h"
(...skipping 12 matching lines...) Expand all
23 23
24 // Absolute code pointer inside code object moves with the code object. 24 // Absolute code pointer inside code object moves with the code object.
25 intptr_t* p = reinterpret_cast<intptr_t*>(pc_); 25 intptr_t* p = reinterpret_cast<intptr_t*>(pc_);
26 *p += delta; // Relocate entry. 26 *p += delta; // Relocate entry.
27 } 27 }
28 28
29 29
30 void RelocInfo::set_target_address(Address target, 30 void RelocInfo::set_target_address(Address target,
31 WriteBarrierMode write_barrier_mode, 31 WriteBarrierMode write_barrier_mode,
32 ICacheFlushMode icache_flush_mode) { 32 ICacheFlushMode icache_flush_mode) {
33 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_)); 33 DCHECK(IsCodeTarget(rmode_) || IsRuntimeEntry(rmode_) || IsWasmCall(rmode_));
34 Assembler::set_target_address_at(isolate_, pc_, host_, target, 34 Assembler::set_target_address_at(isolate_, pc_, host_, target,
35 icache_flush_mode); 35 icache_flush_mode);
36 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL && 36 if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
37 IsCodeTarget(rmode_)) { 37 IsCodeTarget(rmode_)) {
38 Object* target_code = Code::GetCodeFromTargetAddress(target); 38 Object* target_code = Code::GetCodeFromTargetAddress(target);
39 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode( 39 host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
40 host(), this, HeapObject::cast(target_code)); 40 host(), this, HeapObject::cast(target_code));
41 } 41 }
42 } 42 }
43 43
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after
1236 1236
1237 void Assembler::ClearRecordedAstId() { 1237 void Assembler::ClearRecordedAstId() {
1238 recorded_ast_id_ = TypeFeedbackId::None(); 1238 recorded_ast_id_ = TypeFeedbackId::None();
1239 } 1239 }
1240 1240
1241 1241
1242 } // namespace internal 1242 } // namespace internal
1243 } // namespace v8 1243 } // namespace v8
1244 1244
1245 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_ 1245 #endif // V8_ARM64_ASSEMBLER_ARM64_INL_H_
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698