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

Unified Diff: test/cctest/test-run-wasm-relocation-ia32.cc

Issue 2416543002: [wasm] Fix bounds check for zero initial memory. (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 side-by-side diff with in-line comments
Download patch
Index: test/cctest/test-run-wasm-relocation-ia32.cc
diff --git a/test/cctest/test-run-wasm-relocation-ia32.cc b/test/cctest/test-run-wasm-relocation-ia32.cc
index 305d0089c38986391164a784ad46a7759f5f91b8..eaf44007def4e902dbbc5b7ec72a655a8c9f97e6 100644
--- a/test/cctest/test-run-wasm-relocation-ia32.cc
+++ b/test/cctest/test-run-wasm-relocation-ia32.cc
@@ -96,9 +96,9 @@ TEST(WasmRelocationIa32MemorySizeReference) {
Label fail;
__ mov(eax, Immediate(reinterpret_cast<Address>(size),
- RelocInfo::WASM_MEMORY_SIZE_REFERENCE));
+ RelocInfo::WASM_MEMORY_DWORD_SIZE_REFERENCE));
__ cmp(eax, Immediate(reinterpret_cast<Address>(size),
- RelocInfo::WASM_MEMORY_SIZE_REFERENCE));
+ RelocInfo::WASM_MEMORY_DWORD_SIZE_REFERENCE));
__ j(not_equal, &fail);
__ ret(0);
__ bind(&fail);
@@ -126,7 +126,7 @@ TEST(WasmRelocationIa32MemorySizeReference) {
size_t offset = 10;
- int mode_mask = (1 << RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
+ int mode_mask = (1 << RelocInfo::WASM_MEMORY_DWORD_SIZE_REFERENCE);
for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) {
RelocInfo::Mode mode = it.rinfo()->rmode();
if (RelocInfo::IsWasmMemorySizeReference(mode)) {

Powered by Google App Engine
This is Rietveld 408576698