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

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

Issue 2627543003: [wasm] Prerequisites for WebAssembly Table.Grow (Closed)
Patch Set: Rename update function 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/arm/assembler-arm.cc ('k') | src/assembler.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // 2 //
3 // Redistribution and use in source and binary forms, with or without 3 // Redistribution and use in source and binary forms, with or without
4 // modification, are permitted provided that the following conditions are 4 // modification, are permitted provided that the following conditions are
5 // met: 5 // met:
6 // 6 //
7 // * Redistributions of source code must retain the above copyright 7 // * Redistributions of source code must retain the above copyright
8 // notice, this list of conditions and the following disclaimer. 8 // notice, this list of conditions and the following disclaimer.
9 // * Redistributions in binary form must reproduce the above 9 // * Redistributions in binary form must reproduce the above
10 // copyright notice, this list of conditions and the following 10 // copyright notice, this list of conditions and the following
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 uint32_t RelocInfo::wasm_memory_size_reference() { 187 uint32_t RelocInfo::wasm_memory_size_reference() {
188 DCHECK(IsWasmMemorySizeReference(rmode_)); 188 DCHECK(IsWasmMemorySizeReference(rmode_));
189 return Memory::uint32_at(Assembler::target_pointer_address_at(pc_)); 189 return Memory::uint32_at(Assembler::target_pointer_address_at(pc_));
190 } 190 }
191 191
192 Address RelocInfo::wasm_global_reference() { 192 Address RelocInfo::wasm_global_reference() {
193 DCHECK(IsWasmGlobalReference(rmode_)); 193 DCHECK(IsWasmGlobalReference(rmode_));
194 return Memory::Address_at(Assembler::target_pointer_address_at(pc_)); 194 return Memory::Address_at(Assembler::target_pointer_address_at(pc_));
195 } 195 }
196 196
197 uint32_t RelocInfo::wasm_function_table_size_reference() {
198 DCHECK(IsWasmFunctionTableSizeReference(rmode_));
199 return Memory::uint32_at(Assembler::target_pointer_address_at(pc_));
200 }
201
197 void RelocInfo::unchecked_update_wasm_memory_reference( 202 void RelocInfo::unchecked_update_wasm_memory_reference(
198 Address address, ICacheFlushMode flush_mode) { 203 Address address, ICacheFlushMode flush_mode) {
199 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); 204 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode);
200 } 205 }
201 206
202 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 207 void RelocInfo::unchecked_update_wasm_size(uint32_t size,
203 ICacheFlushMode flush_mode) { 208 ICacheFlushMode flush_mode) {
204 Memory::uint32_at(Assembler::target_pointer_address_at(pc_)) = size; 209 Memory::uint32_at(Assembler::target_pointer_address_at(pc_)) = size;
205 } 210 }
206 211
207 Register GetAllocatableRegisterThatIsNotOneOf(Register reg1, Register reg2, 212 Register GetAllocatableRegisterThatIsNotOneOf(Register reg1, Register reg2,
208 Register reg3, Register reg4) { 213 Register reg3, Register reg4) {
209 CPURegList regs(reg1, reg2, reg3, reg4); 214 CPURegList regs(reg1, reg2, reg3, reg4);
210 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft(); 215 const RegisterConfiguration* config = RegisterConfiguration::Crankshaft();
211 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) { 216 for (int i = 0; i < config->num_allocatable_double_registers(); ++i) {
212 int code = config->GetAllocatableDoubleCode(i); 217 int code = config->GetAllocatableDoubleCode(i);
213 Register candidate = Register::from_code(code); 218 Register candidate = Register::from_code(code);
(...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after
3212 movk(scratch, (target_offset >> 32) & 0xFFFF, 32); 3217 movk(scratch, (target_offset >> 32) & 0xFFFF, 32);
3213 DCHECK((target_offset >> 48) == 0); 3218 DCHECK((target_offset >> 48) == 0);
3214 add(rd, rd, scratch); 3219 add(rd, rd, scratch);
3215 } 3220 }
3216 3221
3217 3222
3218 } // namespace internal 3223 } // namespace internal
3219 } // namespace v8 3224 } // namespace v8
3220 3225
3221 #endif // V8_TARGET_ARCH_ARM64 3226 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698