|
|
DescriptionRe-land of Use parenthesis in descriptions for array/map/set lengths/sizes
Descriptions for (typed)arrays will use parenthesis instead of square brackets
"Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions
of maps and sets.
Related CL for DevTools: https://codereview.chromium.org/2524913002/
BUG=405845
Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d
Committed: https://crrev.com/2c1fb7a8211f59e7378274cd6e12d64ca23488ca
Cr-Original-Commit-Position: refs/heads/master@{#41237}
Cr-Commit-Position: refs/heads/master@{#41442}
Patch Set 1 #
Total comments: 4
Patch Set 2 : ac #
Total comments: 2
Patch Set 3 : ac #
Messages
Total messages: 43 (30 generated)
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes BUG=405845 ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. BUG=405845 ==========
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. BUG=405845 ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 ==========
luoe@chromium.org changed reviewers: + dgozman@chromium.org, kozyatinskiy@chromium.org
This change is also described in section B3 on array hints in the doc linked in the crbug. Please take a look.
Could you add test for set and map? https://codereview.chromium.org/2521853003/diff/1/src/inspector/injected-scri... File src/inspector/injected-script-source.js (right): https://codereview.chromium.org/2521853003/diff/1/src/inspector/injected-scri... src/inspector/injected-script-source.js:632: className += "(" + obj.length + ")"; className += "(" + obj.length + ")"; -> return className + "(" + obj.length + ")"; https://codereview.chromium.org/2521853003/diff/1/src/inspector/injected-scri... src/inspector/injected-script-source.js:638: className += "(" + obj.size + ")"; ditto
Test added "length-or-size-description.js" https://codereview.chromium.org/2521853003/diff/1/src/inspector/injected-scri... File src/inspector/injected-script-source.js (right): https://codereview.chromium.org/2521853003/diff/1/src/inspector/injected-scri... src/inspector/injected-script-source.js:632: className += "(" + obj.length + ")"; On 2016/11/23 01:04:39, kozyatinskiy wrote: > className += "(" + obj.length + ")"; -> return className + "(" + obj.length + > ")"; Done. https://codereview.chromium.org/2521853003/diff/1/src/inspector/injected-scri... src/inspector/injected-script-source.js:638: className += "(" + obj.size + ")"; On 2016/11/23 01:04:39, kozyatinskiy wrote: > ditto Done.
lgtm https://codereview.chromium.org/2521853003/diff/20001/test/inspector/runtime/... File test/inspector/runtime/length-or-size-description.js (right): https://codereview.chromium.org/2521853003/diff/20001/test/inspector/runtime/... test/inspector/runtime/length-or-size-description.js:7: testExpression("new Set()") V8 run microtasks in the scheduled first - run first order we can try to replace this code with following. Promise.all([ testExpression("new Set()"), testExpression("new Set([1,2])")), testExpression("new Map()")), testExpression("new Map([[1,2],[3,4]])")), testExpression("new Array()")), testExpression("new Array(2)")), testExpression("new Uint8Array()")), testExpression("new Uint8Array(2)")) ]).then(() => InspectorTest.completeTest());
https://codereview.chromium.org/2521853003/diff/20001/test/inspector/runtime/... File test/inspector/runtime/length-or-size-description.js (right): https://codereview.chromium.org/2521853003/diff/20001/test/inspector/runtime/... test/inspector/runtime/length-or-size-description.js:7: testExpression("new Set()") On 2016/11/23 18:49:10, kozyatinskiy wrote: > V8 run microtasks in the scheduled first - run first order we can try to replace > this code with following. > Promise.all([ > testExpression("new Set()"), > testExpression("new Set([1,2])")), > testExpression("new Map()")), > testExpression("new Map([[1,2],[3,4]])")), > testExpression("new Array()")), > testExpression("new Array(2)")), > testExpression("new Uint8Array()")), > testExpression("new Uint8Array(2)")) > ]).then(() => InspectorTest.completeTest()); Done.
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ==========
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_FAILED, no build URL)
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 ==========
The CQ bit was checked by luoe@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from kozyatinskiy@chromium.org Link to the patchset: https://codereview.chromium.org/2521853003/#ps40001 (title: "ac")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1479949719926770, "parent_rev": "cfa83e4513df1a0c05bdafc9669934550c22e909", "commit_rev": "2de5573157c74ce15065bbcd81b8980af032c6e4"}
Message was sent while issue was closed.
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237}
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/2530803002/ by machenbach@chromium.org. The reason for reverting is: Breaks layout tests: https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/bui... https://github.com/v8/v8/wiki/Blink-layout-tests.
Message was sent while issue was closed.
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ========== to ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ==========
Description was changed from ========== Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ========== to ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ==========
Description was changed from ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ========== to ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ==========
The CQ bit was checked by luoe@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: linux_precise_blink_rel on master.tryserver.blink (JOB_FAILED, no build URL)
Description was changed from ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ========== to ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ==========
The CQ bit was checked by luoe@chromium.org
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch. Bot data: {"patchset_id": 40001, "attempt_start_ts": 1480641864136990, "parent_rev": "a4bea5f4bf6561f62583abda52fc9496a575774a", "commit_rev": "260db19db134d0c447049de08200a15cd14818db"}
On 2016/11/24 07:21:47, Michael Achenbach wrote: > A revert of this CL (patchset #3 id:40001) has been created in > https://codereview.chromium.org/2530803002/ by mailto:machenbach@chromium.org. > > The reason for reverting is: Breaks layout tests: > https://build.chromium.org/p/client.v8.fyi/builders/V8-Blink%20Linux%2064/bui... > > https://github.com/v8/v8/wiki/Blink-layout-tests. Thanks for the revert. Sorry for breaking the tests, I've updated the TestExpectations on the Blink layout tests side https://codereview.chromium.org/2550513002/ After that landed, I ran this CL on linux_trusty_blink_rel, and it passed, so it should be clear for re-landing.
Message was sent while issue was closed.
Description was changed from ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ========== to ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001)
Message was sent while issue was closed.
Description was changed from ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Cr-Commit-Position: refs/heads/master@{#41237} ========== to ========== Re-land of Use parenthesis in descriptions for array/map/set lengths/sizes Descriptions for (typed)arrays will use parenthesis instead of square brackets "Array(10)" instead of "Array[10]". This CL also adds size hints to descriptions of maps and sets. Related CL for DevTools: https://codereview.chromium.org/2524913002/ BUG=405845 Committed: https://crrev.com/92c77a57390e6a9ef726535b255a24359751992d Committed: https://crrev.com/2c1fb7a8211f59e7378274cd6e12d64ca23488ca Cr-Original-Commit-Position: refs/heads/master@{#41237} Cr-Commit-Position: refs/heads/master@{#41442} ==========
Message was sent while issue was closed.
Patchset 3 (id:??) landed as https://crrev.com/2c1fb7a8211f59e7378274cd6e12d64ca23488ca Cr-Commit-Position: refs/heads/master@{#41442} |