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

Side by Side Diff: src/ia32/assembler-ia32.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/compiler/x64/code-generator-x64.cc ('k') | src/mips/assembler-mips.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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Address RelocInfo::wasm_global_reference() { 194 Address RelocInfo::wasm_global_reference() {
195 DCHECK(IsWasmGlobalReference(rmode_)); 195 DCHECK(IsWasmGlobalReference(rmode_));
196 return Memory::Address_at(pc_); 196 return Memory::Address_at(pc_);
197 } 197 }
198 198
199 uint32_t RelocInfo::wasm_memory_size_reference() { 199 uint32_t RelocInfo::wasm_memory_size_reference() {
200 DCHECK(IsWasmMemorySizeReference(rmode_)); 200 DCHECK(IsWasmMemorySizeReference(rmode_));
201 return Memory::uint32_at(pc_); 201 return Memory::uint32_at(pc_);
202 } 202 }
203 203
204 uint32_t RelocInfo::wasm_function_table_size_reference() {
205 DCHECK(IsWasmFunctionTableSizeReference(rmode_));
206 return Memory::uint32_at(pc_);
207 }
208
204 void RelocInfo::unchecked_update_wasm_memory_reference( 209 void RelocInfo::unchecked_update_wasm_memory_reference(
205 Address address, ICacheFlushMode flush_mode) { 210 Address address, ICacheFlushMode flush_mode) {
206 Memory::Address_at(pc_) = address; 211 Memory::Address_at(pc_) = address;
207 } 212 }
208 213
209 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 214 void RelocInfo::unchecked_update_wasm_size(uint32_t size,
210 ICacheFlushMode flush_mode) { 215 ICacheFlushMode flush_mode) {
211 Memory::uint32_at(pc_) = size; 216 Memory::uint32_at(pc_) = size;
212 } 217 }
213 218
214 // ----------------------------------------------------------------------------- 219 // -----------------------------------------------------------------------------
215 // Implementation of Operand 220 // Implementation of Operand
216 221
217 Operand::Operand(Register base, int32_t disp, RelocInfo::Mode rmode) { 222 Operand::Operand(Register base, int32_t disp, RelocInfo::Mode rmode) {
218 // [base + disp/r] 223 // [base + disp/r]
219 if (disp == 0 && RelocInfo::IsNone(rmode) && !base.is(ebp)) { 224 if (disp == 0 && RelocInfo::IsNone(rmode) && !base.is(ebp)) {
220 // [base] 225 // [base]
(...skipping 2838 matching lines...) Expand 10 before | Expand all | Expand 10 after
3059 } 3064 }
3060 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); 3065 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL);
3061 reloc_info_writer.Write(&rinfo); 3066 reloc_info_writer.Write(&rinfo);
3062 } 3067 }
3063 3068
3064 3069
3065 } // namespace internal 3070 } // namespace internal
3066 } // namespace v8 3071 } // namespace v8
3067 3072
3068 #endif // V8_TARGET_ARCH_IA32 3073 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/x64/code-generator-x64.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698