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

Issue 2664273002: [wasm] Acquire the context for TrapIf from a wasm frame (Closed)

Created:
3 years, 10 months ago by ahaas
Modified:
3 years, 10 months ago
CC:
v8-mips-ports_googlegroups.com, v8-ppc-ports_googlegroups.com, v8-reviews_googlegroups.com, v8-x87-ports_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Acquire the context for TrapIf from a wasm frame This is the first step to reduce the size of the out-of-line code of TrapIf. Instead of passing the context to the runtime call as a parameter, we pass Smi::kZero to the runtime call and then get the actual context from the WasmFrame on the stack. BUG=v8:5908 R=titzer@chromium.org, clemensh@chromium.org Review-Url: https://codereview.chromium.org/2664273002 Cr-Commit-Position: refs/heads/master@{#42853} Committed: https://chromium.googlesource.com/v8/v8/+/87d309dadd062c1c4d279505aa5e36df12026016

Patch Set 1 #

Total comments: 7

Patch Set 2 : Add DCHECK_NULL(isolate->context()); #

Unified diffs Side-by-side diffs Delta from patch set Stats (+18 lines, -8 lines) Patch
M src/compiler/arm/code-generator-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/arm64/code-generator-arm64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/ia32/code-generator-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/mips/code-generator-mips.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/mips64/code-generator-mips64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/wasm-compiler.cc View 1 2 chunks +4 lines, -2 lines 0 comments Download
M src/compiler/x64/code-generator-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime/runtime-wasm.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
ahaas
3 years, 10 months ago (2017-01-31 19:06:32 UTC) #1
titzer
lgtm, but might want to get opinion from mstarzinger@ https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc#newcode62 src/runtime/runtime-wasm.cc:62: ...
3 years, 10 months ago (2017-01-31 19:16:08 UTC) #5
Clemens Hammacher
LGTM, this should already save us a big amount of code space! https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc ...
3 years, 10 months ago (2017-01-31 19:20:34 UTC) #6
Michael Starzinger
LGTM. https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc#newcode55 src/runtime/runtime-wasm.cc:55: Object* ThrowRuntimeError(Isolate* isolate, int message_id, int byte_offset, We ...
3 years, 10 months ago (2017-02-01 11:36:53 UTC) #9
ahaas
https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc File src/runtime/runtime-wasm.cc (right): https://codereview.chromium.org/2664273002/diff/1/src/runtime/runtime-wasm.cc#newcode55 src/runtime/runtime-wasm.cc:55: Object* ThrowRuntimeError(Isolate* isolate, int message_id, int byte_offset, On 2017/02/01 ...
3 years, 10 months ago (2017-02-01 11:48:51 UTC) #12
Clemens Hammacher
lgtm
3 years, 10 months ago (2017-02-01 11:54:09 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/2664273002/20001
3 years, 10 months ago (2017-02-01 12:57:30 UTC) #18
commit-bot: I haz the power
3 years, 10 months ago (2017-02-01 13:23:04 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/v8/v8/+/87d309dadd062c1c4d279505aa5e36df120...

Powered by Google App Engine
This is Rietveld 408576698