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

Side by Side Diff: src/x87/assembler-x87.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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 Address RelocInfo::wasm_global_reference() { 109 Address RelocInfo::wasm_global_reference() {
110 DCHECK(IsWasmGlobalReference(rmode_)); 110 DCHECK(IsWasmGlobalReference(rmode_));
111 return Memory::Address_at(pc_); 111 return Memory::Address_at(pc_);
112 } 112 }
113 113
114 uint32_t RelocInfo::wasm_memory_size_reference() { 114 uint32_t RelocInfo::wasm_memory_size_reference() {
115 DCHECK(IsWasmMemorySizeReference(rmode_)); 115 DCHECK(IsWasmMemorySizeReference(rmode_));
116 return Memory::uint32_at(pc_); 116 return Memory::uint32_at(pc_);
117 } 117 }
118 118
119 uint8 RelocInfo::wasm_memtype_size_reference() {
120 DCHECK(IsWasmMemtypeSizeReference(rmode_));
121 return Memory::uint8_at(pc_);
122 }
123
119 void RelocInfo::unchecked_update_wasm_memory_reference( 124 void RelocInfo::unchecked_update_wasm_memory_reference(
120 Address address, ICacheFlushMode flush_mode) { 125 Address address, ICacheFlushMode flush_mode) {
121 Memory::Address_at(pc_) = address; 126 Memory::Address_at(pc_) = address;
122 } 127 }
123 128
124 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size, 129 void RelocInfo::unchecked_update_wasm_memory_size(uint32_t size,
125 ICacheFlushMode flush_mode) { 130 ICacheFlushMode flush_mode) {
126 Memory::uint32_at(pc_) = size; 131 Memory::uint32_at(pc_) = size;
127 } 132 }
128 133
(...skipping 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2196 return; 2201 return;
2197 } 2202 }
2198 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL); 2203 RelocInfo rinfo(isolate(), pc_, rmode, data, NULL);
2199 reloc_info_writer.Write(&rinfo); 2204 reloc_info_writer.Write(&rinfo);
2200 } 2205 }
2201 2206
2202 } // namespace internal 2207 } // namespace internal
2203 } // namespace v8 2208 } // namespace v8
2204 2209
2205 #endif // V8_TARGET_ARCH_X87 2210 #endif // V8_TARGET_ARCH_X87
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698