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

Side by Side Diff: src/mips/assembler-mips.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/ia32/assembler-ia32-inl.h ('k') | src/mips/assembler-mips-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 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 Address RelocInfo::wasm_memory_reference() { 192 Address RelocInfo::wasm_memory_reference() {
193 DCHECK(IsWasmMemoryReference(rmode_)); 193 DCHECK(IsWasmMemoryReference(rmode_));
194 return Assembler::target_address_at(pc_, host_); 194 return Assembler::target_address_at(pc_, host_);
195 } 195 }
196 196
197 uint32_t RelocInfo::wasm_memory_size_reference() { 197 uint32_t RelocInfo::wasm_memory_size_reference() {
198 DCHECK(IsWasmMemorySizeReference(rmode_)); 198 DCHECK(IsWasmMemorySizeReference(rmode_));
199 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); 199 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_));
200 } 200 }
201 201
202 uint32_t RelocInfo::wasm_function_index() {
203 DCHECK(IsWasmCall(rmode_));
204 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_));
205 }
206
202 void RelocInfo::update_wasm_memory_reference( 207 void RelocInfo::update_wasm_memory_reference(
203 Address old_base, Address new_base, uint32_t old_size, uint32_t new_size, 208 Address old_base, Address new_base, uint32_t old_size, uint32_t new_size,
204 ICacheFlushMode icache_flush_mode) { 209 ICacheFlushMode icache_flush_mode) {
205 DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_)); 210 DCHECK(IsWasmMemoryReference(rmode_) || IsWasmMemorySizeReference(rmode_));
206 if (IsWasmMemoryReference(rmode_)) { 211 if (IsWasmMemoryReference(rmode_)) {
207 Address updated_memory_reference; 212 Address updated_memory_reference;
208 DCHECK(old_base <= wasm_memory_reference() && 213 DCHECK(old_base <= wasm_memory_reference() &&
209 wasm_memory_reference() < old_base + old_size); 214 wasm_memory_reference() < old_base + old_size);
210 updated_memory_reference = new_base + (wasm_memory_reference() - old_base); 215 updated_memory_reference = new_base + (wasm_memory_reference() - old_base);
211 DCHECK(new_base <= updated_memory_reference && 216 DCHECK(new_base <= updated_memory_reference &&
(...skipping 2993 matching lines...) Expand 10 before | Expand all | Expand 10 after
3205 3210
3206 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3211 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3207 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); 3212 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t));
3208 } 3213 }
3209 } 3214 }
3210 3215
3211 } // namespace internal 3216 } // namespace internal
3212 } // namespace v8 3217 } // namespace v8
3213 3218
3214 #endif // V8_TARGET_ARCH_MIPS 3219 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/assembler-ia32-inl.h ('k') | src/mips/assembler-mips-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698