Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Side by Side Diff: src/s390/assembler-s390.cc

Issue 2625683004: PPC/s390: [wasm] Prerequisites for WebAssembly Table.Grow (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ppc/assembler-ppc.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 DCHECK(IsWasmMemorySizeReference(rmode_)); 232 DCHECK(IsWasmMemorySizeReference(rmode_));
233 return static_cast<uint32_t>( 233 return static_cast<uint32_t>(
234 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_))); 234 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_)));
235 } 235 }
236 236
237 Address RelocInfo::wasm_global_reference() { 237 Address RelocInfo::wasm_global_reference() {
238 DCHECK(IsWasmGlobalReference(rmode_)); 238 DCHECK(IsWasmGlobalReference(rmode_));
239 return Assembler::target_address_at(pc_, host_); 239 return Assembler::target_address_at(pc_, host_);
240 } 240 }
241 241
242 uint32_t RelocInfo::wasm_function_table_size_reference() {
243 DCHECK(IsWasmFunctionTableSizeReference(rmode_));
244 return static_cast<uint32_t>(
245 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_)));
246 }
247
242 void RelocInfo::unchecked_update_wasm_memory_reference( 248 void RelocInfo::unchecked_update_wasm_memory_reference(
243 Address address, ICacheFlushMode flush_mode) { 249 Address address, ICacheFlushMode flush_mode) {
244 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); 250 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode);
245 } 251 }
246 252
247 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 253 void RelocInfo::unchecked_update_wasm_size(uint32_t size,
248 ICacheFlushMode flush_mode) { 254 ICacheFlushMode flush_mode) {
249 Assembler::set_target_address_at(isolate_, pc_, host_, 255 Assembler::set_target_address_at(isolate_, pc_, host_,
250 reinterpret_cast<Address>(size), flush_mode); 256 reinterpret_cast<Address>(size), flush_mode);
251 } 257 }
252 258
253 // ----------------------------------------------------------------------------- 259 // -----------------------------------------------------------------------------
254 // Implementation of Operand and MemOperand 260 // Implementation of Operand and MemOperand
255 // See assembler-s390-inl.h for inlined constructors 261 // See assembler-s390-inl.h for inlined constructors
256 262
257 Operand::Operand(Handle<Object> handle) { 263 Operand::Operand(Handle<Object> handle) {
258 AllowDeferredHandleDereference using_raw_address; 264 AllowDeferredHandleDereference using_raw_address;
(...skipping 2363 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 SKIP_ICACHE_FLUSH); 2628 SKIP_ICACHE_FLUSH);
2623 } 2629 }
2624 2630
2625 reloc_info_writer.Write(&rinfo); 2631 reloc_info_writer.Write(&rinfo);
2626 } 2632 }
2627 } 2633 }
2628 2634
2629 } // namespace internal 2635 } // namespace internal
2630 } // namespace v8 2636 } // namespace v8
2631 #endif // V8_TARGET_ARCH_S390 2637 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/ppc/assembler-ppc.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698