OLD | NEW |
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 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
323 const int kLastChunkTagMask = 1; | 323 const int kLastChunkTagMask = 1; |
324 const int kLastChunkTag = 1; | 324 const int kLastChunkTag = 1; |
325 | 325 |
326 const int kCodeWithIdTag = 0; | 326 const int kCodeWithIdTag = 0; |
327 const int kDeoptReasonTag = 1; | 327 const int kDeoptReasonTag = 1; |
328 | 328 |
329 void RelocInfo::update_wasm_memory_reference( | 329 void RelocInfo::update_wasm_memory_reference( |
330 Isolate* isolate, Address old_base, Address new_base, | 330 Isolate* isolate, Address old_base, Address new_base, |
331 ICacheFlushMode icache_flush_mode) { | 331 ICacheFlushMode icache_flush_mode) { |
332 DCHECK(IsWasmMemoryReference(rmode_)); | 332 DCHECK(IsWasmMemoryReference(rmode_)); |
333 DCHECK_GE(wasm_memory_reference(), old_base); | |
334 Address updated_reference = new_base + (wasm_memory_reference() - old_base); | 333 Address updated_reference = new_base + (wasm_memory_reference() - old_base); |
335 // The reference is not checked here but at runtime. Validity of references | 334 // The reference is not checked here but at runtime. Validity of references |
336 // may change over time. | 335 // may change over time. |
337 unchecked_update_wasm_memory_reference(isolate, updated_reference, | 336 unchecked_update_wasm_memory_reference(isolate, updated_reference, |
338 icache_flush_mode); | 337 icache_flush_mode); |
339 } | 338 } |
340 | 339 |
341 void RelocInfo::update_wasm_memory_size(Isolate* isolate, uint32_t old_size, | 340 void RelocInfo::update_wasm_memory_size(Isolate* isolate, uint32_t old_size, |
342 uint32_t new_size, | 341 uint32_t new_size, |
343 ICacheFlushMode icache_flush_mode) { | 342 ICacheFlushMode icache_flush_mode) { |
(...skipping 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2017 | 2016 |
2018 void Assembler::DataAlign(int m) { | 2017 void Assembler::DataAlign(int m) { |
2019 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 2018 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
2020 while ((pc_offset() & (m - 1)) != 0) { | 2019 while ((pc_offset() & (m - 1)) != 0) { |
2021 db(0); | 2020 db(0); |
2022 } | 2021 } |
2023 } | 2022 } |
2024 | 2023 |
2025 } // namespace internal | 2024 } // namespace internal |
2026 } // namespace v8 | 2025 } // namespace v8 |
OLD | NEW |