| 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 Address RelocInfo::wasm_global_reference() { | 194 Address RelocInfo::wasm_global_reference() { |
| 195 DCHECK(IsWasmGlobalReference(rmode_)); | 195 DCHECK(IsWasmGlobalReference(rmode_)); |
| 196 return Memory::Address_at(pc_); | 196 return Memory::Address_at(pc_); |
| 197 } | 197 } |
| 198 | 198 |
| 199 uint32_t RelocInfo::wasm_memory_size_reference() { | 199 uint32_t RelocInfo::wasm_memory_size_reference() { |
| 200 DCHECK(IsWasmMemorySizeReference(rmode_)); | 200 DCHECK(IsWasmMemorySizeReference(rmode_)); |
| 201 return Memory::uint32_at(pc_); | 201 return Memory::uint32_at(pc_); |
| 202 } | 202 } |
| 203 | 203 |
| 204 uint8_t RelocInfo::wasm_memtype_size_reference() { |
| 205 DCHECK(IsWasmMemtypeSizeReference(rmode_)); |
| 206 return Memory::uint8_at(pc_); |
| 207 } |
| 208 |
| 204 void RelocInfo::unchecked_update_wasm_memory_reference( | 209 void RelocInfo::unchecked_update_wasm_memory_reference( |
| 205 Address address, ICacheFlushMode flush_mode) { | 210 Address address, ICacheFlushMode flush_mode) { |
| 206 Memory::Address_at(pc_) = address; | 211 Memory::Address_at(pc_) = address; |
| 207 } | 212 } |
| 208 | 213 |
| 209 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, | 214 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, |
| 210 ICacheFlushMode flush_mode) { | 215 ICacheFlushMode flush_mode) { |
| 211 Memory::uint32_at(pc_) = size; | 216 Memory::uint32_at(pc_) = size; |
| 212 } | 217 } |
| 213 | 218 |
| (...skipping 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 } | 3063 } |
| 3059 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 3064 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
| 3060 reloc_info_writer.Write(&rinfo); | 3065 reloc_info_writer.Write(&rinfo); |
| 3061 } | 3066 } |
| 3062 | 3067 |
| 3063 | 3068 |
| 3064 } // namespace internal | 3069 } // namespace internal |
| 3065 } // namespace v8 | 3070 } // namespace v8 |
| 3066 | 3071 |
| 3067 #endif // V8_TARGET_ARCH_IA32 | 3072 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |