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

Issue 1970503004: [wasm] Differentiate unnamed and empty names (Closed)

Created:
4 years, 7 months ago by Clemens Hammacher
Modified:
4 years, 7 months ago
Reviewers:
titzer, Yang
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@add-utf8-check
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[wasm] Differentiate unnamed and empty names Empty function names are allowed and are output as such, unnamed functions or functions with no valid UTF-8 name are output as "<WASM UNNAMED>", while the CallSite object returns null as the function name. R=titzer@chromium.org, yangguo@chromium.org Committed: https://crrev.com/3596cac87ecb107b723aecb9f457c1c9fb5c1df0 Cr-Commit-Position: refs/heads/master@{#36348}

Patch Set 1 #

Total comments: 12

Patch Set 2 : change stack print format & address other comments #

Patch Set 3 : rebase #

Patch Set 4 : fix test case #

Patch Set 5 : rebase #

Patch Set 6 : minor doc fix #

Total comments: 6

Patch Set 7 : Return null instead of undefined, and other cleanup #

Total comments: 7

Patch Set 8 : rebase #

Patch Set 9 : Yang's last comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+161 lines, -98 lines) Patch
M src/frames.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M src/frames.cc View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -8 lines 0 comments Download
M src/isolate.cc View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -6 lines 0 comments Download
M src/js/messages.js View 1 2 3 4 5 6 2 chunks +2 lines, -7 lines 0 comments Download
M src/messages.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -6 lines 0 comments Download
M src/runtime/runtime.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -1 line 0 comments Download
M src/runtime/runtime-function.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -10 lines 0 comments Download
M src/wasm/wasm-function-name-table.h View 1 2 3 4 5 6 1 chunk +7 lines, -4 lines 0 comments Download
M src/wasm/wasm-function-name-table.cc View 1 2 3 4 5 6 2 chunks +20 lines, -20 lines 0 comments Download
M src/wasm/wasm-module.h View 1 2 3 4 5 6 2 chunks +5 lines, -4 lines 0 comments Download
M src/wasm/wasm-module.cc View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -8 lines 0 comments Download
M test/cctest/wasm/test-wasm-function-name-table.cc View 1 2 3 4 5 6 3 chunks +17 lines, -7 lines 0 comments Download
M test/cctest/wasm/test-wasm-stack.cc View 1 2 2 chunks +8 lines, -8 lines 0 comments Download
M test/cctest/wasm/test-wasm-trap-position.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
A test/mjsunit/wasm/function-names.js View 1 2 3 4 5 6 1 chunk +69 lines, -0 lines 0 comments Download
M test/mjsunit/wasm/stack.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
Clemens Hammacher
4 years, 7 months ago (2016-05-11 19:03:37 UTC) #1
titzer
https://codereview.chromium.org/1970503004/diff/1/src/js/messages.js File src/js/messages.js (right): https://codereview.chromium.org/1970503004/diff/1/src/js/messages.js#newcode682 src/js/messages.js:682: funName = "<WASM UNNAMED>"; Should probably also add the ...
4 years, 7 months ago (2016-05-12 09:05:51 UTC) #2
Clemens Hammacher
https://codereview.chromium.org/1970503004/diff/1/src/js/messages.js File src/js/messages.js (right): https://codereview.chromium.org/1970503004/diff/1/src/js/messages.js#newcode682 src/js/messages.js:682: funName = "<WASM UNNAMED>"; On 2016/05/12 09:05:51, titzer wrote: ...
4 years, 7 months ago (2016-05-12 09:45:57 UTC) #3
titzer
https://codereview.chromium.org/1970503004/diff/1/src/js/messages.js File src/js/messages.js (right): https://codereview.chromium.org/1970503004/diff/1/src/js/messages.js#newcode682 src/js/messages.js:682: funName = "<WASM UNNAMED>"; On 2016/05/12 09:45:57, Clemens Hammacher ...
4 years, 7 months ago (2016-05-12 09:54:36 UTC) #4
Clemens Hammacher
all done.
4 years, 7 months ago (2016-05-12 13:26:11 UTC) #5
titzer
On 2016/05/12 13:26:11, Clemens Hammacher wrote: > all done. lgtm
4 years, 7 months ago (2016-05-12 13:35:42 UTC) #6
Yang
https://codereview.chromium.org/1970503004/diff/100001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1970503004/diff/100001/src/isolate.cc#newcode624 src/isolate.cc:624: fun_name = isolate_->factory()->InternalizeUtf8String( We should not be using InternalizeUtf8String ...
4 years, 7 months ago (2016-05-13 07:41:10 UTC) #7
Clemens Hammacher
https://codereview.chromium.org/1970503004/diff/100001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1970503004/diff/100001/src/isolate.cc#newcode624 src/isolate.cc:624: fun_name = isolate_->factory()->InternalizeUtf8String( On 2016/05/13 07:41:10, Yang wrote: > ...
4 years, 7 months ago (2016-05-17 17:43:24 UTC) #9
Clemens Hammacher
https://codereview.chromium.org/1970503004/diff/100001/src/isolate.cc File src/isolate.cc (right): https://codereview.chromium.org/1970503004/diff/100001/src/isolate.cc#newcode624 src/isolate.cc:624: fun_name = isolate_->factory()->InternalizeUtf8String( On 2016/05/13 07:41:10, Yang wrote: > ...
4 years, 7 months ago (2016-05-17 17:43:25 UTC) #10
Yang
LGTM with some comments. https://codereview.chromium.org/1970503004/diff/120001/src/frames.cc File src/frames.cc (right): https://codereview.chromium.org/1970503004/diff/120001/src/frames.cc#newcode1363 src/frames.cc:1363: return name.is_null() ? nullptr : ...
4 years, 7 months ago (2016-05-18 13:38:48 UTC) #11
Clemens Hammacher
https://codereview.chromium.org/1970503004/diff/120001/src/frames.cc File src/frames.cc (right): https://codereview.chromium.org/1970503004/diff/120001/src/frames.cc#newcode1363 src/frames.cc:1363: return name.is_null() ? nullptr : *name.ToHandleChecked(); On 2016/05/18 13:38:48, ...
4 years, 7 months ago (2016-05-18 17:44:07 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1970503004/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1970503004/160001
4 years, 7 months ago (2016-05-19 07:50:58 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
4 years, 7 months ago (2016-05-19 07:52:43 UTC) #17
commit-bot: I haz the power
4 years, 7 months ago (2016-05-19 07:54:20 UTC) #19
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/3596cac87ecb107b723aecb9f457c1c9fb5c1df0
Cr-Commit-Position: refs/heads/master@{#36348}

Powered by Google App Engine
This is Rietveld 408576698