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

Issue 2507093004: Refactor StringStream Add methods (Closed)

Created:
4 years, 1 month ago by Clemens Hammacher
Modified:
4 years, 1 month ago
Reviewers:
titzer, ahaas
CC:
v8-reviews_googlegroups.com
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Refactor StringStream Add methods Instead of having functions for 0 to 5 arguments, we now have a variadic template, allowing for an arbitrary number of arguments. I also refactored the internal FmtElm class to only include the type field if building for debug, because it is only used in this setting. R=titzer@chromium.org, ahaas@chromium.org Committed: https://crrev.com/a00e1a573334cbd22b3a83e281965c8371836a73 Cr-Commit-Position: refs/heads/master@{#41099}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Clean up macros and make FmtElm private #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -105 lines) Patch
M src/string-stream.h View 1 4 chunks +58 lines, -58 lines 1 comment Download
M src/string-stream.cc View 1 chunk +0 lines, -47 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 17 (10 generated)
Clemens Hammacher
4 years, 1 month ago (2016-11-17 16:40:56 UTC) #5
titzer
https://codereview.chromium.org/2507093004/diff/1/src/string-stream.h File src/string-stream.h (right): https://codereview.chromium.org/2507093004/diff/1/src/string-stream.h#newcode60 src/string-stream.h:60: #ifdef DEBUG Could you do this macro stuff a ...
4 years, 1 month ago (2016-11-17 17:00:38 UTC) #6
Clemens Hammacher
I also made the FmtElm helper class private to the StringStream. https://codereview.chromium.org/2507093004/diff/1/src/string-stream.h File src/string-stream.h (right): ...
4 years, 1 month ago (2016-11-17 18:40:01 UTC) #9
titzer
lgtm https://codereview.chromium.org/2507093004/diff/20001/src/string-stream.h File src/string-stream.h (right): https://codereview.chromium.org/2507093004/diff/20001/src/string-stream.h#newcode88 src/string-stream.h:88: explicit FmtElm(Type type) : type_(type) {} Cool, that's ...
4 years, 1 month ago (2016-11-18 10:40:43 UTC) #12
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/2507093004/20001
4 years, 1 month ago (2016-11-18 11:59:09 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-18 12:01:06 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-11-18 12:01:47 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/a00e1a573334cbd22b3a83e281965c8371836a73
Cr-Commit-Position: refs/heads/master@{#41099}

Powered by Google App Engine
This is Rietveld 408576698