|
|
DescriptionUse the compile-time constant for v8::ValueSerializer format version.
BUG=704293
TBR=jochen@chromium.org
Review-Url: https://codereview.chromium.org/2801053003
Cr-Commit-Position: refs/heads/master@{#469437}
Committed: https://chromium.googlesource.com/chromium/src/+/41a331f01308223da331ecbdf5d73f4fb03fe42e
Patch Set 1 #Patch Set 2 : static #Patch Set 3 : revert #
Depends on Patchset: Messages
Total messages: 28 (18 generated)
The CQ bit was checked by jbroman@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: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_a...) mac_chromium_rel_ng on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by jbroman@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 checked by jbroman@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.
jbroman@chromium.org changed reviewers: + jsbell@chromium.org, pwnall@chromium.org
lgtm
On 2017/05/02 16:59:34, jsbell wrote: > lgtm LGTM. I wish there'd be a way to assert that the function will remain constexpr to avoid static initialization issues. I don't know of such a way, though.
On 2017/05/02 at 18:56:52, pwnall wrote: > On 2017/05/02 16:59:34, jsbell wrote: > > lgtm > > LGTM. > > I wish there'd be a way to assert that the function will remain constexpr to avoid static initialization issues. I don't know of such a way, though. We could use it in a context that constant-expression is required, like a static_assert: static_assert(v8::CurrentValueSerializerFormatVersion(), "V8 should have a constexpr format version"); I'm not quite sure how much it's worth doing that, but I can add it if you'd like.
On 2017/05/02 at 19:57:41, jbroman wrote: > On 2017/05/02 at 18:56:52, pwnall wrote: > > On 2017/05/02 16:59:34, jsbell wrote: > > > lgtm > > > > LGTM. > > > > I wish there'd be a way to assert that the function will remain constexpr to avoid static initialization issues. I don't know of such a way, though. > > We could use it in a context that constant-expression is required, like a static_assert: > > static_assert(v8::CurrentValueSerializerFormatVersion(), "V8 should have a constexpr format version"); > > I'm not quite sure how much it's worth doing that, but I can add it if you'd like. To elaborate slightly, it feels to me a bit like adding an assertion that the return type of a function doesn't change -- it's generally the responsibility of someone changing the contract of a function to look at the callers. Besides, we do have the sizes check for static initializers (after-the-fact).
The CQ bit was checked by jbroman@chromium.org
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
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presub...)
Description was changed from ========== Use the compile-time constant for v8::ValueSerializer format version. BUG=704293 ========== to ========== Use the compile-time constant for v8::ValueSerializer format version. BUG=704293 TBR=jochen@chromium.org ==========
jbroman@chromium.org changed reviewers: + jochen@chromium.org
TBR-ing jochen for DEPS change to permit another v8 constant-only header
The CQ bit was checked by jbroman@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": 1493924361139920, "parent_rev": "762ccd490dd28b660ca3a0f9f5befe07e2f82702", "commit_rev": "41a331f01308223da331ecbdf5d73f4fb03fe42e"}
Message was sent while issue was closed.
Description was changed from ========== Use the compile-time constant for v8::ValueSerializer format version. BUG=704293 TBR=jochen@chromium.org ========== to ========== Use the compile-time constant for v8::ValueSerializer format version. BUG=704293 TBR=jochen@chromium.org Review-Url: https://codereview.chromium.org/2801053003 Cr-Commit-Position: refs/heads/master@{#469437} Committed: https://chromium.googlesource.com/chromium/src/+/41a331f01308223da331ecbdf5d7... ==========
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as https://chromium.googlesource.com/chromium/src/+/41a331f01308223da331ecbdf5d7... |