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

Side by Side Diff: src/ppc/assembler-ppc.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/compiler/s390/code-generator-s390.cc ('k') | src/s390/assembler-s390.cc » ('j') | 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 DCHECK(IsWasmMemorySizeReference(rmode_)); 164 DCHECK(IsWasmMemorySizeReference(rmode_));
165 return static_cast<uint32_t>( 165 return static_cast<uint32_t>(
166 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_))); 166 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_)));
167 } 167 }
168 168
169 Address RelocInfo::wasm_global_reference() { 169 Address RelocInfo::wasm_global_reference() {
170 DCHECK(IsWasmGlobalReference(rmode_)); 170 DCHECK(IsWasmGlobalReference(rmode_));
171 return Assembler::target_address_at(pc_, host_); 171 return Assembler::target_address_at(pc_, host_);
172 } 172 }
173 173
174 uint32_t RelocInfo::wasm_function_table_size_reference() {
175 DCHECK(IsWasmFunctionTableSizeReference(rmode_));
176 return static_cast<uint32_t>(
177 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_)));
178 }
174 179
175 void RelocInfo::unchecked_update_wasm_memory_reference( 180 void RelocInfo::unchecked_update_wasm_memory_reference(
176 Address address, ICacheFlushMode flush_mode) { 181 Address address, ICacheFlushMode flush_mode) {
177 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); 182 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode);
178 } 183 }
179 184
180 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 185 void RelocInfo::unchecked_update_wasm_size(uint32_t size,
181 ICacheFlushMode flush_mode) { 186 ICacheFlushMode flush_mode) {
182 Assembler::set_target_address_at(isolate_, pc_, host_, 187 Assembler::set_target_address_at(isolate_, pc_, host_,
183 reinterpret_cast<Address>(size), flush_mode); 188 reinterpret_cast<Address>(size), flush_mode);
184 } 189 }
185 190
186 // ----------------------------------------------------------------------------- 191 // -----------------------------------------------------------------------------
187 // Implementation of Operand and MemOperand 192 // Implementation of Operand and MemOperand
188 // See assembler-ppc-inl.h for inlined constructors 193 // See assembler-ppc-inl.h for inlined constructors
189 194
190 Operand::Operand(Handle<Object> handle) { 195 Operand::Operand(Handle<Object> handle) {
191 AllowDeferredHandleDereference using_raw_address; 196 AllowDeferredHandleDereference using_raw_address;
(...skipping 2323 matching lines...) Expand 10 before | Expand all | Expand 10 after
2515 2520
2516 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_); 2521 trampoline_ = Trampoline(pc_offset() - size, tracked_branch_count_);
2517 } 2522 }
2518 } 2523 }
2519 2524
2520 2525
2521 } // namespace internal 2526 } // namespace internal
2522 } // namespace v8 2527 } // namespace v8
2523 2528
2524 #endif // V8_TARGET_ARCH_PPC 2529 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/compiler/s390/code-generator-s390.cc ('k') | src/s390/assembler-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698