| OLD | NEW |
| 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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 Address RelocInfo::wasm_global_reference() { | 197 Address RelocInfo::wasm_global_reference() { |
| 198 DCHECK(IsWasmGlobalReference(rmode_)); | 198 DCHECK(IsWasmGlobalReference(rmode_)); |
| 199 return Assembler::target_address_at(pc_, host_); | 199 return Assembler::target_address_at(pc_, host_); |
| 200 } | 200 } |
| 201 | 201 |
| 202 uint32_t RelocInfo::wasm_memory_size_reference() { | 202 uint32_t RelocInfo::wasm_memory_size_reference() { |
| 203 DCHECK(IsWasmMemorySizeReference(rmode_)); | 203 DCHECK(IsWasmMemorySizeReference(rmode_)); |
| 204 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); | 204 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); |
| 205 } | 205 } |
| 206 | 206 |
| 207 uint8_t RelocInfo::wasm_memtype_size_reference() { |
| 208 DCHECK(IsWasmMemtypeSizeReference(rmode_)); |
| 209 return static_cast<byte>( |
| 210 reinterpret_cast<uintptr_t>(Assembler::target_address_at(pc_, host_))); |
| 211 } |
| 212 |
| 207 void RelocInfo::unchecked_update_wasm_memory_reference( | 213 void RelocInfo::unchecked_update_wasm_memory_reference( |
| 208 Address address, ICacheFlushMode flush_mode) { | 214 Address address, ICacheFlushMode flush_mode) { |
| 209 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); | 215 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); |
| 210 } | 216 } |
| 211 | 217 |
| 212 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, | 218 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, |
| 213 ICacheFlushMode flush_mode) { | 219 ICacheFlushMode flush_mode) { |
| 214 Assembler::set_target_address_at(isolate_, pc_, host_, | 220 Assembler::set_target_address_at(isolate_, pc_, host_, |
| 215 reinterpret_cast<Address>(size), flush_mode); | 221 reinterpret_cast<Address>(size), flush_mode); |
| 216 } | 222 } |
| (...skipping 3011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3228 | 3234 |
| 3229 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3235 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
| 3230 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3236 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
| 3231 } | 3237 } |
| 3232 } | 3238 } |
| 3233 | 3239 |
| 3234 } // namespace internal | 3240 } // namespace internal |
| 3235 } // namespace v8 | 3241 } // namespace v8 |
| 3236 | 3242 |
| 3237 #endif // V8_TARGET_ARCH_MIPS | 3243 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |