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

Issue 2726553003: [wasm] Prepare WasmCompilationUnit for lazy compilation (Closed)

Created:
3 years, 9 months ago by Clemens Hammacher
Modified:
3 years, 7 months ago
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Prepare WasmCompilationUnit for lazy compilation In lazy compilation, we only compile one function at a time, and we might not have the wire bytes of the whole module available. This CL prepares the WasmCompilationUnit for this setting. It will also be helpful for streaming compilation. Also, the ErrorThrower (which might heap-allocate) is not stored in the WasmCompilationUnit any more. Instead, it is passed to the FinishCompilation method which is allowed to heap-allocate. R=titzer@chromium.org, ahaas@chromium.org BUG=v8:5991 Review-Url: https://codereview.chromium.org/2726553003 Cr-Commit-Position: refs/heads/master@{#43573} Committed: https://chromium.googlesource.com/v8/v8/+/7f68cbbffa14376006226a427d1b42081b109d46

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address comment #

Patch Set 3 : Minor fix in vector.h #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -93 lines) Patch
M src/compiler/wasm-compiler.h View 2 chunks +13 lines, -19 lines 1 comment Download
M src/compiler/wasm-compiler.cc View 1 2 6 chunks +73 lines, -65 lines 0 comments Download
M src/vector.h View 1 2 1 chunk +1 line, -1 line 4 comments Download
M src/wasm/wasm-module.cc View 1 4 chunks +8 lines, -7 lines 0 comments Download
M test/cctest/wasm/wasm-run-utils.h View 1 chunk +4 lines, -1 line 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 29 (19 generated)
Clemens Hammacher
3 years, 9 months ago (2017-02-28 15:15:59 UTC) #5
ahaas
lgtm https://codereview.chromium.org/2726553003/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2726553003/diff/1/src/compiler/wasm-compiler.cc#newcode4073 src/compiler/wasm-compiler.cc:4073: if (func_name_.start() == nullptr) { Shouldn't this be ...
3 years, 9 months ago (2017-02-28 18:33:36 UTC) #8
Clemens Hammacher
https://codereview.chromium.org/2726553003/diff/1/src/compiler/wasm-compiler.cc File src/compiler/wasm-compiler.cc (right): https://codereview.chromium.org/2726553003/diff/1/src/compiler/wasm-compiler.cc#newcode4073 src/compiler/wasm-compiler.cc:4073: if (func_name_.start() == nullptr) { On 2017/02/28 at 18:33:35, ...
3 years, 9 months ago (2017-03-02 11:52:14 UTC) #11
titzer
lgtm with nit https://codereview.chromium.org/2726553003/diff/40001/src/compiler/wasm-compiler.h File src/compiler/wasm-compiler.h (left): https://codereview.chromium.org/2726553003/diff/40001/src/compiler/wasm-compiler.h#oldcode73 src/compiler/wasm-compiler.h:73: wasm::ErrorThrower* thrower_; Ah, good that moved ...
3 years, 9 months ago (2017-03-03 09:21:45 UTC) #16
Clemens Hammacher
Jochen, can you provide insights on the minor discussion below? https://codereview.chromium.org/2726553003/diff/40001/src/vector.h File src/vector.h (right): https://codereview.chromium.org/2726553003/diff/40001/src/vector.h#newcode38 ...
3 years, 9 months ago (2017-03-03 09:29:54 UTC) #18
Clemens Hammacher
On 2017/03/03 at 09:29:54, Clemens Hammacher wrote: > Jochen, can you provide insights on the ...
3 years, 9 months ago (2017-03-03 09:44:49 UTC) #21
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/2726553003/40001
3 years, 9 months ago (2017-03-03 09:45:00 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/v8/v8/+/7f68cbbffa14376006226a427d1b42081b109d46
3 years, 9 months ago (2017-03-03 09:47:47 UTC) #27
jochen (gone - plz use gerrit)
https://codereview.chromium.org/2726553003/diff/40001/src/vector.h File src/vector.h (right): https://codereview.chromium.org/2726553003/diff/40001/src/vector.h#newcode38 src/vector.h:38: SLOW_DCHECK(from <= to); Note that this change breaks gcc ...
3 years, 7 months ago (2017-05-03 10:47:22 UTC) #28
Clemens Hammacher
3 years, 7 months ago (2017-05-03 11:01:55 UTC) #29
Message was sent while issue was closed.
https://codereview.chromium.org/2726553003/diff/40001/src/vector.h
File src/vector.h (right):

https://codereview.chromium.org/2726553003/diff/40001/src/vector.h#newcode38
src/vector.h:38: SLOW_DCHECK(from <= to);
On 2017/05/03 at 10:47:22, jochen wrote:
> Note that this change breaks gcc compilation.

For reference: You are referring to this bug: http://crbug.com/v8/6341

How does my change cause this? Wouldn't gcc have complained about "num_chars - 1
< num_chars" as well?

Powered by Google App Engine
This is Rietveld 408576698