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

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

Issue 2416543002: [wasm] Fix bounds check for zero initial memory. (Closed)
Patch Set: Add aTODO Created 4 years, 2 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
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 DCHECK(IsWasmMemorySizeReference(rmode_)); 226 DCHECK(IsWasmMemorySizeReference(rmode_));
227 return static_cast<uint32_t>( 227 return static_cast<uint32_t>(
228 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_))); 228 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_)));
229 } 229 }
230 230
231 Address RelocInfo::wasm_global_reference() { 231 Address RelocInfo::wasm_global_reference() {
232 DCHECK(IsWasmGlobalReference(rmode_)); 232 DCHECK(IsWasmGlobalReference(rmode_));
233 return Assembler::target_address_at(pc_, host_); 233 return Assembler::target_address_at(pc_, host_);
234 } 234 }
235 235
236 uint8_t RelocInfo::wasm_memtype_size_reference() {
237 DCHECK(IsWasmMemorySizeReference(rmode_));
238 return static_cast<uint8_t>(
239 reinterpret_cast<intptr_t>(Assembler::target_address_at(pc_, host_)));
240 }
241
236 void RelocInfo::unchecked_update_wasm_memory_reference( 242 void RelocInfo::unchecked_update_wasm_memory_reference(
237 Address address, ICacheFlushMode flush_mode) { 243 Address address, ICacheFlushMode flush_mode) {
238 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode); 244 Assembler::set_target_address_at(isolate_, pc_, host_, address, flush_mode);
239 } 245 }
240 246
241 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 247 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size,
242 ICacheFlushMode flush_mode) { 248 ICacheFlushMode flush_mode) {
243 Assembler::set_target_address_at(isolate_, pc_, host_, 249 Assembler::set_target_address_at(isolate_, pc_, host_,
244 reinterpret_cast<Address>(size), flush_mode); 250 reinterpret_cast<Address>(size), flush_mode);
245 } 251 }
(...skipping 2882 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 SKIP_ICACHE_FLUSH); 3134 SKIP_ICACHE_FLUSH);
3129 } 3135 }
3130 3136
3131 reloc_info_writer.Write(&rinfo); 3137 reloc_info_writer.Write(&rinfo);
3132 } 3138 }
3133 } 3139 }
3134 3140
3135 } // namespace internal 3141 } // namespace internal
3136 } // namespace v8 3142 } // namespace v8
3137 #endif // V8_TARGET_ARCH_S390 3143 #endif // V8_TARGET_ARCH_S390
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698