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

Side by Side Diff: src/mips64/assembler-mips64.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/mips/assembler-mips.cc ('k') | src/wasm/wasm-module.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 (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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 DCHECK(IsWasmGlobalReference(rmode_)); 176 DCHECK(IsWasmGlobalReference(rmode_));
177 return Assembler::target_address_at(pc_, host_); 177 return Assembler::target_address_at(pc_, host_);
178 } 178 }
179 179
180 uint32_t RelocInfo::wasm_memory_size_reference() { 180 uint32_t RelocInfo::wasm_memory_size_reference() {
181 DCHECK(IsWasmMemorySizeReference(rmode_)); 181 DCHECK(IsWasmMemorySizeReference(rmode_));
182 return static_cast<uint32_t>( 182 return static_cast<uint32_t>(
183 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_)))); 183 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_))));
184 } 184 }
185 185
186 uint32_t RelocInfo::wasm_function_table_size_reference() {
187 DCHECK(IsWasmFunctionTableSizeReference(rmode_));
188 return static_cast<uint32_t>(
189 reinterpret_cast<intptr_t>((Assembler::target_address_at(pc_, host_))));
190 }
191
186 void RelocInfo::unchecked_update_wasm_memory_reference( 192 void RelocInfo::unchecked_update_wasm_memory_reference(
187 Address address, ICacheFlushMode flush_mode) { 193 Address address, ICacheFlushMode flush_mode) {
188 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); 194 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode);
189 } 195 }
190 196
191 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 197 void RelocInfo::unchecked_update_wasm_size(uint32_t size,
192 ICacheFlushMode flush_mode) { 198 ICacheFlushMode flush_mode) {
193 Assembler::set_target_address_at(isolate_, pc_, host_, 199 Assembler::set_target_address_at(isolate_, pc_, host_,
194 reinterpret_cast<Address>(size), flush_mode); 200 reinterpret_cast<Address>(size), flush_mode);
195 } 201 }
196 202
197 // ----------------------------------------------------------------------------- 203 // -----------------------------------------------------------------------------
198 // Implementation of Operand and MemOperand. 204 // Implementation of Operand and MemOperand.
199 // See assembler-mips-inl.h for inlined constructors. 205 // See assembler-mips-inl.h for inlined constructors.
200 206
201 Operand::Operand(Handle<Object> handle) { 207 Operand::Operand(Handle<Object> handle) {
202 AllowDeferredHandleDereference using_raw_address; 208 AllowDeferredHandleDereference using_raw_address;
(...skipping 3323 matching lines...) Expand 10 before | Expand all | Expand 10 after
3526 3532
3527 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 3533 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
3528 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize); 3534 Assembler::FlushICache(isolate, pc, 4 * Assembler::kInstrSize);
3529 } 3535 }
3530 } 3536 }
3531 3537
3532 } // namespace internal 3538 } // namespace internal
3533 } // namespace v8 3539 } // namespace v8
3534 3540
3535 #endif // V8_TARGET_ARCH_MIPS64 3541 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/assembler-mips.cc ('k') | src/wasm/wasm-module.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698