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

Issue 2108273003: Strictly disable instantiation of AllStatic class (Closed)

Created:
4 years, 5 months ago by honggyu.kim
Modified:
4 years, 5 months ago
CC:
v8-reviews_googlegroups.com
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Strictly disable instantiation of AllStatic class Since the intention of using AllStatic class is to provide classes that only contain static method functions without member variables so it doesn't have to be instantiated at all. However, current implementation only disables dynamic instantiation, and it can be detected at runtime by reaching UNREACHABLE(). And it can still have instances allocated inside stack. This blocks all those cases by deleting default constructor of AllStatic class to prevent undesirable usage of it. BUG= R=jochen@chromium.org Committed: https://crrev.com/446232f16b85504410d48dfadfab95da939bad92 Cr-Commit-Position: refs/heads/master@{#37532}

Patch Set 1 #

Patch Set 2 : Strictly disable instantiation of AllStatic class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -14 lines) Patch
M src/allocation.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/allocation.cc View 1 chunk +0 lines, -11 lines 0 comments Download

Messages

Total messages: 15 (4 generated)
honggyu.kim
Hi Jochen, This may not be an important patch but I think it'd be better ...
4 years, 5 months ago (2016-06-30 04:33:12 UTC) #1
jochen (gone - plz use gerrit)
lgtm
4 years, 5 months ago (2016-06-30 15:16:11 UTC) #2
honggyu.kim
On 2016/06/30 15:16:11, jochen wrote: > lgtm Thanks for the review! As I mentioned I ...
4 years, 5 months ago (2016-07-01 05:38:43 UTC) #3
honggyu.kim
On 2016/07/01 05:38:43, honggyu.kim wrote: > On 2016/06/30 15:16:11, jochen wrote: > > lgtm Hi ...
4 years, 5 months ago (2016-07-04 07:43:27 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2108273003/20001
4 years, 5 months ago (2016-07-05 13:28:39 UTC) #6
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-05 13:55:37 UTC) #8
jochen (gone - plz use gerrit)
On 2016/07/04 at 07:43:27, honggyu.kp wrote: > On 2016/07/01 05:38:43, honggyu.kim wrote: > > On ...
4 years, 5 months ago (2016-07-05 14:20:55 UTC) #9
honggyu.kim
On 2016/07/05 14:20:55, jochen wrote: > > just press the button yourself Thanks, will do!
4 years, 5 months ago (2016-07-05 14:22:18 UTC) #10
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/2108273003/20001
4 years, 5 months ago (2016-07-05 14:22:29 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 5 months ago (2016-07-05 14:24:50 UTC) #13
commit-bot: I haz the power
4 years, 5 months ago (2016-07-05 14:27:44 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/446232f16b85504410d48dfadfab95da939bad92
Cr-Commit-Position: refs/heads/master@{#37532}

Powered by Google App Engine
This is Rietveld 408576698