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 | 5 // modification, are permitted provided that the following conditions |
6 // are met: | 6 // are 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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 uint32_t RelocInfo::wasm_memory_size_reference() { | 344 uint32_t RelocInfo::wasm_memory_size_reference() { |
345 DCHECK(IsWasmMemorySizeReference(rmode_)); | 345 DCHECK(IsWasmMemorySizeReference(rmode_)); |
346 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); | 346 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); |
347 } | 347 } |
348 | 348 |
349 Address RelocInfo::wasm_global_reference() { | 349 Address RelocInfo::wasm_global_reference() { |
350 DCHECK(IsWasmGlobalReference(rmode_)); | 350 DCHECK(IsWasmGlobalReference(rmode_)); |
351 return Assembler::target_address_at(pc_, host_); | 351 return Assembler::target_address_at(pc_, host_); |
352 } | 352 } |
353 | 353 |
| 354 uint8_t RelocInfo::wasm_memtype_size_reference() { |
| 355 DCHECK(IsWasmMemtypeSizeReference(rmode_)); |
| 356 return static_cast<uint8_t>( |
| 357 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_))); |
| 358 } |
| 359 |
354 void RelocInfo::unchecked_update_wasm_memory_reference( | 360 void RelocInfo::unchecked_update_wasm_memory_reference( |
355 Address address, ICacheFlushMode flush_mode) { | 361 Address address, ICacheFlushMode flush_mode) { |
356 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); | 362 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); |
357 } | 363 } |
358 | 364 |
359 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, | 365 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, |
360 ICacheFlushMode flush_mode) { | 366 ICacheFlushMode flush_mode) { |
361 Assembler::set_target_address_at(isolate_, pc_, host_, | 367 Assembler::set_target_address_at(isolate_, pc_, host_, |
362 reinterpret_cast<Address>(size), flush_mode); | 368 reinterpret_cast<Address>(size), flush_mode); |
363 } | 369 } |
(...skipping 4109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4473 DCHECK(is_uint12(offset)); | 4479 DCHECK(is_uint12(offset)); |
4474 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); | 4480 instr_at_put(pc, SetLdrRegisterImmediateOffset(instr, offset)); |
4475 } | 4481 } |
4476 } | 4482 } |
4477 | 4483 |
4478 | 4484 |
4479 } // namespace internal | 4485 } // namespace internal |
4480 } // namespace v8 | 4486 } // namespace v8 |
4481 | 4487 |
4482 #endif // V8_TARGET_ARCH_ARM | 4488 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |