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

Unified Diff: src/wasm/wasm-module.cc

Issue 2862763002: [wasm] Avoid js-typed-lowering optimization for wasm Memory objects (Closed)
Patch Set: Cleanup Created 3 years, 8 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
« no previous file with comments | « src/objects-inl.h ('k') | test/mjsunit/regress/wasm/regression-717194.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/wasm-module.cc
diff --git a/src/wasm/wasm-module.cc b/src/wasm/wasm-module.cc
index 620883b28e00450eeb3cd1b3572b668e0d443628..0d6d09caaaf80bcd1509ac5c9e3fcda70631528f 100644
--- a/src/wasm/wasm-module.cc
+++ b/src/wasm/wasm-module.cc
@@ -815,6 +815,7 @@ Handle<JSArrayBuffer> wasm::SetupArrayBuffer(Isolate* isolate,
JSArrayBuffer::Setup(buffer, isolate, is_external, backing_store,
static_cast<int>(size));
buffer->set_is_neuterable(false);
+ buffer->set_is_wasm_buffer(true);
buffer->set_has_guard_region(enable_guard_regions);
if (is_external) {
@@ -1222,6 +1223,7 @@ class InstantiationHelper {
if (!memory_.is_null()) {
// Set externally passed ArrayBuffer non neuterable.
memory_->set_is_neuterable(false);
+ memory_->set_is_wasm_buffer(true);
DCHECK_IMPLIES(EnableGuardRegions(),
module_->is_asm_js() || memory_->has_guard_region());
« no previous file with comments | « src/objects-inl.h ('k') | test/mjsunit/regress/wasm/regression-717194.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698