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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 DCHECK(IsWasmGlobalReference(rmode_)); | 176 DCHECK(IsWasmGlobalReference(rmode_)); |
177 return Assembler::target_address_at(pc_, host_); | 177 return Assembler::target_address_at(pc_, host_); |
178 } | 178 } |
179 | 179 |
180 uint32_t RelocInfo::wasm_memory_size_reference() { | 180 uint32_t RelocInfo::wasm_memory_size_reference() { |
181 DCHECK(IsWasmMemorySizeReference(rmode_)); | 181 DCHECK(IsWasmMemorySizeReference(rmode_)); |
182 return static_cast<uint32_t>( | 182 return static_cast<uint32_t>( |
183 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_)))); | 183 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_)))); |
184 } | 184 } |
185 | 185 |
| 186 uint32_t RelocInfo::wasm_function_table_size_reference() { |
| 187 DCHECK(IsWasmFunctionTableSizeReference(rmode_)); |
| 188 return static_cast<uint32_t>( |
| 189 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_)))); |
| 190 } |
| 191 |
186 void RelocInfo::unchecked_update_wasm_memory_reference( | 192 void RelocInfo::unchecked_update_wasm_memory_reference( |
187 Address address, ICacheFlushMode flush_mode) { | 193 Address address, ICacheFlushMode flush_mode) { |
188 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); | 194 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); |
189 } | 195 } |
190 | 196 |
191 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, | 197 void RelocInfo::unchecked_update_wasm_size(uint32_t size, |
192 ICacheFlushMode flush_mode) { | 198 ICacheFlushMode flush_mode) { |
193 Assembler::set_target_address_at(isolate_, pc_, host_, | 199 Assembler::set_target_address_at(isolate_, pc_, host_, |
194 reinterpret_cast<Address>(size), flush_mode); | 200 reinterpret_cast<Address>(size), flush_mode); |
195 } | 201 } |
196 | 202 |
197 // ----------------------------------------------------------------------------- | 203 // ----------------------------------------------------------------------------- |
198 // Implementation of Operand and MemOperand. | 204 // Implementation of Operand and MemOperand. |
199 // See assembler-mips-inl.h for inlined constructors. | 205 // See assembler-mips-inl.h for inlined constructors. |
200 | 206 |
201 Operand::Operand(Handle<Object> handle) { | 207 Operand::Operand(Handle<Object> handle) { |
202 AllowDeferredHandleDereference using_raw_address; | 208 AllowDeferredHandleDereference using_raw_address; |
(...skipping 3323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3526 | 3532 |
3527 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3533 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3528 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); | 3534 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); |
3529 } | 3535 } |
3530 } | 3536 } |
3531 | 3537 |
3532 } // namespace internal | 3538 } // namespace internal |
3533 } // namespace v8 | 3539 } // namespace v8 |
3534 | 3540 |
3535 #endif // V8_TARGET_ARCH_MIPS64 | 3541 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |