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

Side by Side Diff: src/arm64/assembler-arm64.cc

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/arm/assembler-arm-inl.h ('k') | src/arm64/assembler-arm64-inl.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 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 Address RelocInfo::wasm_memory_reference() { 182 Address RelocInfo::wasm_memory_reference() {
183 DCHECK(IsWasmMemoryReference(rmode_)); 183 DCHECK(IsWasmMemoryReference(rmode_));
184 return Memory::Address_at(Assembler::target_pointer_address_at(pc_)); 184 return Memory::Address_at(Assembler::target_pointer_address_at(pc_));
185 } 185 }
186 186
187 uint32_t RelocInfo::wasm_memory_size_reference() { 187 uint32_t RelocInfo::wasm_memory_size_reference() {
188 DCHECK(IsWasmMemorySizeReference(rmode_)); 188 DCHECK(IsWasmMemorySizeReference(rmode_));
189 return Memory::uint32_at(Assembler::target_pointer_address_at(pc_)); 189 return Memory::uint32_at(Assembler::target_pointer_address_at(pc_));
190 } 190 }
191 191
192 uint32_t RelocInfo::wasm_function_index() {
193 DCHECK(IsWasmCall(rmode_));
194 return Memory::uint32_at(Assembler::target_pointer_address_at(pc_));
195 }
196
192 void RelocInfo::update_wasm_memory_reference( 197 void RelocInfo::update_wasm_memory_reference(
193 Address old_base, Address new_base, uint32_t old_size, uint32_t new_size, 198 Address old_base, Address new_base, uint32_t old_size, uint32_t new_size,
194 ICacheFlushMode icache_flush_mode) { 199 ICacheFlushMode icache_flush_mode) {
195 DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_)); 200 DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_));
196 if (IsWasmMemoryReference(rmode_) && old_base != new_base) { 201 if (IsWasmMemoryReference(rmode_) && old_base != new_base) {
197 Address updated_memory_reference; 202 Address updated_memory_reference;
198 DCHECK(old_base <= wasm_memory_reference() && 203 DCHECK(old_base <= wasm_memory_reference() &&
199 wasm_memory_reference() < old_base + old_size); 204 wasm_memory_reference() < old_base + old_size);
200 updated_memory_reference = new_base + (wasm_memory_reference() - old_base); 205 updated_memory_reference = new_base + (wasm_memory_reference() - old_base);
201 DCHECK(new_base <= updated_memory_reference && 206 DCHECK(new_base <= updated_memory_reference &&
(...skipping 3037 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); 3244 movk(scratch, (target_offset >> 32) & 0xFFFF, 32);
3240 DCHECK((target_offset >> 48) == 0); 3245 DCHECK((target_offset >> 48) == 0);
3241 add(rd, rd, scratch); 3246 add(rd, rd, scratch);
3242 } 3247 }
3243 3248
3244 3249
3245 } // namespace internal 3250 } // namespace internal
3246 } // namespace v8 3251 } // namespace v8
3247 3252
3248 #endif // V8_TARGET_ARCH_ARM64 3253 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/assembler-arm-inl.h ('k') | src/arm64/assembler-arm64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698