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

Unified Diff: test/cctest/test-run-wasm-relocation-arm64.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-arm64.cc
diff --git a/test/cctest/test-run-wasm-relocation-arm64.cc b/test/cctest/test-run-wasm-relocation-arm64.cc
index 3b49f00afc348e963e4f2a03298c58b14be30583..fb27628a3e1bc2188c8b3d3fe36753fde2048819 100644
--- a/test/cctest/test-run-wasm-relocation-arm64.cc
+++ b/test/cctest/test-run-wasm-relocation-arm64.cc
@@ -84,7 +84,7 @@ TEST(WasmRelocationArm64MemorySizeReference) {
HandleScope scope(isolate);
v8::internal::byte buffer[4096];
DummyStaticFunction(NULL);
- Immediate size = Immediate(512, RelocInfo::WASM_MEMORY_SIZE_REFERENCE);
+ Immediate size = Immediate(512, RelocInfo::WASM_MEMORY_DWORD_SIZE_REFERENCE);
Label fail;
MacroAssembler masm(isolate, buffer, sizeof buffer,
@@ -115,7 +115,7 @@ TEST(WasmRelocationArm64MemorySizeReference) {
#endif
int32_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