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

Issue 2591903002: [wasm] sundry trap handler fixes (Closed)

Created:
4 years ago by Eric Holk
Modified:
4 years ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] sundry trap handler fixes This CL includes several small bug fixes for trap handlers. Among the changes: * Use the correct representation for ProtectedLoads, enabling protected loads of floating point types. * Including the protected instruction list in what gets serialized for Code objects. This is needed to allow deserialization for Wasm modules to work. * Get the context needed to through and exception from the Isolate rather than getting it as a parameter to the Protected instructions. Passing it in as an argument is problematic when code is compiled ahead of time, as the context may not be known yet. The new approach is similar to how it works for TrapIf and TrapUnless. BUG= https://bugs.chromium.org/p/v8/issues/detail?id=5277 Review-Url: https://codereview.chromium.org/2591903002 Cr-Commit-Position: refs/heads/master@{#41907} Committed: https://chromium.googlesource.com/v8/v8/+/5fa423d7c28cfb058293cd2b1c21e6fd4df4813f

Patch Set 1 #

Patch Set 2 : Minor cleanup #

Total comments: 2

Patch Set 3 : Merge VisitLoad and VisitProtectedLoad #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -105 lines) Patch
M src/compiler/instruction-selector.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M src/compiler/machine-operator.cc View 2 chunks +36 lines, -36 lines 0 comments Download
M src/compiler/memory-optimizer.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M src/compiler/wasm-compiler.cc View 2 chunks +3 lines, -6 lines 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 10 chunks +46 lines, -27 lines 0 comments Download
M src/compiler/x64/instruction-selector-x64.cc View 1 2 4 chunks +11 lines, -28 lines 0 comments Download
M src/factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/objects.h View 2 chunks +5 lines, -4 lines 0 comments Download
M src/objects-body-descriptors-inl.h View 1 chunk +4 lines, -1 line 0 comments Download
M src/objects-inl.h View 2 chunks +2 lines, -0 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (5 generated)
Eric Holk
4 years ago (2016-12-21 00:24:30 UTC) #2
titzer
Nice simplification! LGTM if comments are addressed. https://codereview.chromium.org/2591903002/diff/20001/src/compiler/x64/instruction-selector-x64.cc File src/compiler/x64/instruction-selector-x64.cc (right): https://codereview.chromium.org/2591903002/diff/20001/src/compiler/x64/instruction-selector-x64.cc#newcode250 src/compiler/x64/instruction-selector-x64.cc:250: void InstructionSelector::VisitLoad(Node* ...
4 years ago (2016-12-21 08:51:39 UTC) #3
Eric Holk
https://codereview.chromium.org/2591903002/diff/20001/src/compiler/x64/instruction-selector-x64.cc File src/compiler/x64/instruction-selector-x64.cc (right): https://codereview.chromium.org/2591903002/diff/20001/src/compiler/x64/instruction-selector-x64.cc#newcode250 src/compiler/x64/instruction-selector-x64.cc:250: void InstructionSelector::VisitLoad(Node* node) { On 2016/12/21 08:51:39, titzer wrote: ...
4 years ago (2016-12-22 00:01:44 UTC) #4
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/2591903002/40001
4 years ago (2016-12-22 00:02:23 UTC) #7
commit-bot: I haz the power
4 years ago (2016-12-22 00:32:06 UTC) #10
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/v8/v8/+/5fa423d7c28cfb058293cd2b1c21e6fd4df...

Powered by Google App Engine
This is Rietveld 408576698