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

Issue 2367673003: [wasm] Do a proper HasProperty() check in the memory and table setup. (Closed)

Created:
4 years, 3 months ago by ahaas
Modified:
4 years, 2 months ago
Reviewers:
titzer, Franzi
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Do a proper HasProperty() check in the memory and table setup. The WebAssembly spec requires a HasProperty() check for the maximum property of the descriptor object which is used to set up a WebAssembly.Memory object or a WebAssembly.Table object. The original implementation only approximated the HasProperty() check. It used Get() to get the value of the maximum property of the descriptor object and compared the resulting value to {undefined}. However, this approximation is incorrect if the property exists but its value is {undefined}. R=titzer@chromium.org, franzih@chromium.org BUG=chromium:649461 TEST=mjsunit/wasm/memory Committed: https://crrev.com/7bffaaac2c2d3c638475ade4adba60f1b01dd66f Cr-Commit-Position: refs/heads/master@{#39722}

Patch Set 1 #

Total comments: 8

Patch Set 2 : Additional tests #

Patch Set 3 : Added tests also to table.js #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -48 lines) Patch
M src/wasm/wasm-js.cc View 1 6 chunks +29 lines, -31 lines 0 comments Download
M test/mjsunit/wasm/memory.js View 1 2 2 chunks +50 lines, -8 lines 0 comments Download
M test/mjsunit/wasm/table.js View 1 2 2 chunks +50 lines, -9 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 20 (12 generated)
ahaas
4 years, 3 months ago (2016-09-23 13:50:35 UTC) #1
Franzi
https://codereview.chromium.org/2367673003/diff/1/src/wasm/wasm-js.cc File src/wasm/wasm-js.cc (right): https://codereview.chromium.org/2367673003/diff/1/src/wasm/wasm-js.cc#newcode313 src/wasm/wasm-js.cc:313: v8::MaybeLocal<v8::Value> maybe = object->Get(context, property); You're still doing Object::Get(), ...
4 years, 3 months ago (2016-09-23 14:06:49 UTC) #4
Franzi
LGTM with nits and I'd like to see a test that fails without the patch. ...
4 years, 3 months ago (2016-09-23 17:23:28 UTC) #7
ahaas
PTAL, I added several tests which fail on ToT at the moment but work with ...
4 years, 2 months ago (2016-09-26 09:19:12 UTC) #12
Franzi
On 2016/09/26 at 09:19:12, ahaas wrote: > PTAL, I added several tests which fail on ...
4 years, 2 months ago (2016-09-26 09:25:22 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2367673003/40001
4 years, 2 months ago (2016-09-26 13:04:42 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-26 13:07:52 UTC) #18
commit-bot: I haz the power
4 years, 2 months ago (2016-09-26 13:08:09 UTC) #20
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/7bffaaac2c2d3c638475ade4adba60f1b01dd66f
Cr-Commit-Position: refs/heads/master@{#39722}

Powered by Google App Engine
This is Rietveld 408576698