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 uint32_t RelocInfo::wasm_function_table_size_reference() { |
| 120 DCHECK(IsWasmFunctionTableSizeReference(rmode_)); |
| 121 return Memory::uint32_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_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 |
129 // ----------------------------------------------------------------------------- | 134 // ----------------------------------------------------------------------------- |
130 // Implementation of Operand | 135 // Implementation of Operand |
131 | 136 |
132 Operand::Operand(Register base, int32_t disp, RelocInfo::Mode rmode) { | 137 Operand::Operand(Register base, int32_t disp, RelocInfo::Mode rmode) { |
133 // [base + disp/r] | 138 // [base + disp/r] |
134 if (disp == 0 && RelocInfo::IsNone(rmode) && !base.is(ebp)) { | 139 if (disp == 0 && RelocInfo::IsNone(rmode) && !base.is(ebp)) { |
135 // [base] | 140 // [base] |
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2197 return; | 2202 return; |
2198 } | 2203 } |
2199 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); | 2204 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); |
2200 reloc_info_writer.Write(&rinfo); | 2205 reloc_info_writer.Write(&rinfo); |
2201 } | 2206 } |
2202 | 2207 |
2203 } // namespace internal | 2208 } // namespace internal |
2204 } // namespace v8 | 2209 } // namespace v8 |
2205 | 2210 |
2206 #endif // V8_TARGET_ARCH_X87 | 2211 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |