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

Side by Side Diff: src/mips64/assembler-mips64.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/mips/assembler-mips-inl.h ('k') | src/mips64/assembler-mips64-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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 DCHECK(IsWasmMemoryReference(rmode_)); 171 DCHECK(IsWasmMemoryReference(rmode_));
172 return Assembler::target_address_at(pc_, host_); 172 return Assembler::target_address_at(pc_, host_);
173 } 173 }
174 174
175 uint32_t RelocInfo::wasm_memory_size_reference() { 175 uint32_t RelocInfo::wasm_memory_size_reference() {
176 DCHECK(IsWasmMemorySizeReference(rmode_)); 176 DCHECK(IsWasmMemorySizeReference(rmode_));
177 return static_cast<uint32_t>( 177 return static_cast<uint32_t>(
178 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_)))); 178 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_))));
179 } 179 }
180 180
181 uint32_t RelocInfo::wasm_function_index() {
182 DCHECK(IsWasmCall(rmode_));
183 return static_cast<uint32_t>(
184 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_))));
185 }
186
181 void RelocInfo::update_wasm_memory_reference( 187 void RelocInfo::update_wasm_memory_reference(
182 Address old_base, Address new_base, uint32_t old_size, uint32_t new_size, 188 Address old_base, Address new_base, uint32_t old_size, uint32_t new_size,
183 ICacheFlushMode icache_flush_mode) { 189 ICacheFlushMode icache_flush_mode) {
184 DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_)); 190 DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_));
185 if (IsWasmMemoryReference(rmode_)) { 191 if (IsWasmMemoryReference(rmode_)) {
186 Address updated_memory_reference; 192 Address updated_memory_reference;
187 DCHECK(old_base <= wasm_memory_reference() && 193 DCHECK(old_base <= wasm_memory_reference() &&
188 wasm_memory_reference() < old_base + old_size); 194 wasm_memory_reference() < old_base + old_size);
189 updated_memory_reference = new_base + (wasm_memory_reference() - old_base); 195 updated_memory_reference = new_base + (wasm_memory_reference() - old_base);
190 DCHECK(new_base <= updated_memory_reference && 196 DCHECK(new_base <= updated_memory_reference &&
(...skipping 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after
3450 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3456 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3451 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); 3457 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize);
3452 } 3458 }
3453 } 3459 }
3454 3460
3455 3461
3456 } // namespace internal 3462 } // namespace internal
3457 } // namespace v8 3463 } // namespace v8
3458 3464
3459 #endif // V8_TARGET_ARCH_MIPS64 3465 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/assembler-mips-inl.h ('k') | src/mips64/assembler-mips64-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698