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 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 Address RelocInfo::wasm_global_reference() { | 197 Address RelocInfo::wasm_global_reference() { |
198 DCHECK(IsWasmGlobalReference(rmode_)); | 198 DCHECK(IsWasmGlobalReference(rmode_)); |
199 return Assembler::target_address_at(pc_, host_); | 199 return Assembler::target_address_at(pc_, host_); |
200 } | 200 } |
201 | 201 |
202 uint32_t RelocInfo::wasm_memory_size_reference() { | 202 uint32_t RelocInfo::wasm_memory_size_reference() { |
203 DCHECK(IsWasmMemorySizeReference(rmode_)); | 203 DCHECK(IsWasmMemorySizeReference(rmode_)); |
204 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); | 204 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); |
205 } | 205 } |
206 | 206 |
| 207 uint32_t RelocInfo::wasm_function_table_size_reference() { |
| 208 DCHECK(IsWasmFunctionTableSizeReference(rmode_)); |
| 209 return reinterpret_cast<uint32_t>(Assembler::target_address_at(pc_, host_)); |
| 210 } |
| 211 |
207 void RelocInfo::unchecked_update_wasm_memory_reference( | 212 void RelocInfo::unchecked_update_wasm_memory_reference( |
208 Address address, ICacheFlushMode flush_mode) { | 213 Address address, ICacheFlushMode flush_mode) { |
209 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); | 214 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); |
210 } | 215 } |
211 | 216 |
212 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, | 217 void RelocInfo::unchecked_update_wasm_size(uint32_t size, |
213 ICacheFlushMode flush_mode) { | 218 ICacheFlushMode flush_mode) { |
214 Assembler::set_target_address_at(isolate_, pc_, host_, | 219 Assembler::set_target_address_at(isolate_, pc_, host_, |
215 reinterpret_cast<Address>(size), flush_mode); | 220 reinterpret_cast<Address>(size), flush_mode); |
216 } | 221 } |
217 | 222 |
218 // ----------------------------------------------------------------------------- | 223 // ----------------------------------------------------------------------------- |
219 // Implementation of Operand and MemOperand. | 224 // Implementation of Operand and MemOperand. |
220 // See assembler-mips-inl.h for inlined constructors. | 225 // See assembler-mips-inl.h for inlined constructors. |
221 | 226 |
222 Operand::Operand(Handle<Object> handle) { | 227 Operand::Operand(Handle<Object> handle) { |
223 AllowDeferredHandleDereference using_raw_address; | 228 AllowDeferredHandleDereference using_raw_address; |
(...skipping 3048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3272 | 3277 |
3273 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { | 3278 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { |
3274 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); | 3279 Assembler::FlushICache(isolate, pc, 2 * sizeof(int32_t)); |
3275 } | 3280 } |
3276 } | 3281 } |
3277 | 3282 |
3278 } // namespace internal | 3283 } // namespace internal |
3279 } // namespace v8 | 3284 } // namespace v8 |
3280 | 3285 |
3281 #endif // V8_TARGET_ARCH_MIPS | 3286 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |