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

Side by Side Diff: src/assembler.cc

Issue 2438593003: [wasm] Remove incorrect assembler check. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | test/mjsunit/wasm/grow-memory.js » ('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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 if (IsWasmMemoryReference(rmode_)) { 344 if (IsWasmMemoryReference(rmode_)) {
345 Address updated_reference; 345 Address updated_reference;
346 DCHECK_GE(wasm_memory_reference(), old_base); 346 DCHECK_GE(wasm_memory_reference(), old_base);
347 updated_reference = new_base + (wasm_memory_reference() - old_base); 347 updated_reference = new_base + (wasm_memory_reference() - old_base);
348 // The reference is not checked here but at runtime. Validity of references 348 // The reference is not checked here but at runtime. Validity of references
349 // may change over time. 349 // may change over time.
350 unchecked_update_wasm_memory_reference(updated_reference, 350 unchecked_update_wasm_memory_reference(updated_reference,
351 icache_flush_mode); 351 icache_flush_mode);
352 } else if (IsWasmMemorySizeReference(rmode_)) { 352 } else if (IsWasmMemorySizeReference(rmode_)) {
353 uint32_t current_size_reference = wasm_memory_size_reference(); 353 uint32_t current_size_reference = wasm_memory_size_reference();
354 DCHECK(old_size == 0 || current_size_reference <= old_size);
355 uint32_t updated_size_reference = 354 uint32_t updated_size_reference =
356 new_size + (current_size_reference - old_size); 355 new_size + (current_size_reference - old_size);
357 unchecked_update_wasm_memory_size(updated_size_reference, 356 unchecked_update_wasm_memory_size(updated_size_reference,
358 icache_flush_mode); 357 icache_flush_mode);
359 } else { 358 } else {
360 UNREACHABLE(); 359 UNREACHABLE();
361 } 360 }
362 if (icache_flush_mode != SKIP_ICACHE_FLUSH) { 361 if (icache_flush_mode != SKIP_ICACHE_FLUSH) {
363 Assembler::FlushICache(isolate_, pc_, sizeof(int64_t)); 362 Assembler::FlushICache(isolate_, pc_, sizeof(int64_t));
364 } 363 }
(...skipping 1560 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 1924
1926 1925
1927 void Assembler::DataAlign(int m) { 1926 void Assembler::DataAlign(int m) {
1928 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1927 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1929 while ((pc_offset() & (m - 1)) != 0) { 1928 while ((pc_offset() & (m - 1)) != 0) {
1930 db(0); 1929 db(0);
1931 } 1930 }
1932 } 1931 }
1933 } // namespace internal 1932 } // namespace internal
1934 } // namespace v8 1933 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | test/mjsunit/wasm/grow-memory.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698