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

Unified Diff: test/cctest/test-run-wasm-relocation-x87.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-x87.cc
diff --git a/test/cctest/test-run-wasm-relocation-x87.cc b/test/cctest/test-run-wasm-relocation-x87.cc
index 2156e96ecbe5a7ddb34dcc6e5335194918990686..fbf16aab2387d68758535cfb55ae68d8aef4acd7 100644
--- a/test/cctest/test-run-wasm-relocation-x87.cc
+++ b/test/cctest/test-run-wasm-relocation-x87.cc
@@ -96,9 +96,9 @@ TEST(WasmRelocationX87MemorySizeReference) {
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(WasmRelocationX87MemorySizeReference) {
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