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

Unified Diff: test/cctest/test-run-wasm-relocation-arm.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-arm.cc
diff --git a/test/cctest/test-run-wasm-relocation-arm.cc b/test/cctest/test-run-wasm-relocation-arm.cc
index b2e6ec3a3b2bc669c390c52c82e507a11e7e90fd..bf06f8a61bde0e00ea70b6139932501ebffce58f 100644
--- a/test/cctest/test-run-wasm-relocation-arm.cc
+++ b/test/cctest/test-run-wasm-relocation-arm.cc
@@ -87,8 +87,8 @@ TEST(WasmRelocationArmMemorySizeReference) {
Assembler assm(isolate, buffer, sizeof buffer);
- __ mov(r0, Operand(size, RelocInfo::WASM_MEMORY_SIZE_REFERENCE));
- __ cmp(r0, Operand(size, RelocInfo::WASM_MEMORY_SIZE_REFERENCE));
+ __ mov(r0, Operand(size, RelocInfo::WASM_MEMORY_DWORD_SIZE_REFERENCE));
+ __ cmp(r0, Operand(size, RelocInfo::WASM_MEMORY_DWORD_SIZE_REFERENCE));
__ b(ne, &fail);
__ mov(pc, Operand(lr));
__ bind(&fail);
@@ -112,7 +112,7 @@ TEST(WasmRelocationArmMemorySizeReference) {
#endif
size_t diff = 512;
- 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