| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 Address RelocInfo::wasm_global_reference() { | 109 Address RelocInfo::wasm_global_reference() { |
| 110 DCHECK(IsWasmGlobalReference(rmode_)); | 110 DCHECK(IsWasmGlobalReference(rmode_)); |
| 111 return Memory::Address_at(pc_); | 111 return Memory::Address_at(pc_); |
| 112 } | 112 } |
| 113 | 113 |
| 114 uint32_t RelocInfo::wasm_memory_size_reference() { | 114 uint32_t RelocInfo::wasm_memory_size_reference() { |
| 115 DCHECK(IsWasmMemorySizeReference(rmode_)); | 115 DCHECK(IsWasmMemorySizeReference(rmode_)); |
| 116 return Memory::uint32_at(pc_); | 116 return Memory::uint32_at(pc_); |
| 117 } | 117 } |
| 118 | 118 |
| 119 uint8 RelocInfo::wasm_memtype_size_reference() { |
| 120 DCHECK(IsWasmMemtypeSizeReference(rmode_)); |
| 121 return Memory::uint8_at(pc_); |
| 122 } |
| 123 |
| 119 void RelocInfo::unchecked_update_wasm_memory_reference( | 124 void RelocInfo::unchecked_update_wasm_memory_reference( |
| 120 Address address, ICacheFlushMode flush_mode) { | 125 Address address, ICacheFlushMode flush_mode) { |
| 121 Memory::Address_at(pc_) = address; | 126 Memory::Address_at(pc_) = address; |
| 122 } | 127 } |
| 123 | 128 |
| 124 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, | 129 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, |
| 125 ICacheFlushMode flush_mode) { | 130 ICacheFlushMode flush_mode) { |
| 126 Memory::uint32_at(pc_) = size; | 131 Memory::uint32_at(pc_) = size; |
| 127 } | 132 } |
| 128 | 133 |
| (...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2196 return; | 2201 return; |
| 2197 } | 2202 } |
| 2198 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 2203 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
| 2199 reloc_info_writer.Write(&rinfo); | 2204 reloc_info_writer.Write(&rinfo); |
| 2200 } | 2205 } |
| 2201 | 2206 |
| 2202 } // namespace internal | 2207 } // namespace internal |
| 2203 } // namespace v8 | 2208 } // namespace v8 |
| 2204 | 2209 |
| 2205 #endif // V8_TARGET_ARCH_X87 | 2210 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |