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

Issue 216433003: RFC: Make BisonCSSParser purely stack allocated. (Closed)

Created:
6 years, 9 months ago by wibling-chromium
Modified:
6 years, 8 months ago
CC:
blink-reviews, devtools-reviews_chromium.org, caseq+blink_chromium.org, aandrey+blink_chromium.org, loislo+blink_chromium.org, eustas+blink_chromium.org, alph+blink_chromium.org, ed+blinkwatch_opera.com, lushnikov+blink_chromium.org, yurys+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Visibility:
Public.

Description

RFC: Make BisonCSSParser purely stack allocated. I was looking at how to port the BisonCSSParser and CSSParserObserver to the oilpan (GC) heap and noticed that we had a pointer from the BisonCSSParser back to the stack allocated CSSParserObserver/StyleSheetHandler. While it worked correctly making the BisonCSSParser stack allocated will IMO simplify the lifetime reasoning and make it less likely that we introduce errors. This comes at the "expense" of always allocating a comment parser in the StyleSheetHandler. It is only used in the Inspector code so I am hoping that is okay. R=ager@chromium.org, erik.corry@gmail.com, eseidel@chromium.org, haraken@chromium.org, oilpan-reviews@chromium.org, tkent@chromium.org, vegorov@chromium.org, zerny@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=170530

Patch Set 1 #

Total comments: 6

Patch Set 2 : Review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -15 lines) Patch
M Source/core/css/parser/BisonCSSParser.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/css/parser/CSSParserObserver.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/inspector/InspectorStyleSheet.cpp View 1 8 chunks +12 lines, -13 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
wibling-chromium
6 years, 9 months ago (2014-03-28 11:39:50 UTC) #1
haraken
LGTM. I agree this CL is making the lifetime clearer. https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser.h File Source/core/css/parser/BisonCSSParser.h (right): https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser.h#newcode84 ...
6 years, 9 months ago (2014-03-28 11:50:53 UTC) #2
wibling-chromium
Thanks for the review! https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser.h File Source/core/css/parser/BisonCSSParser.h (right): https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser.h#newcode84 Source/core/css/parser/BisonCSSParser.h:84: BisonCSSParser(const CSSParserContext&); On 2014/03/28 11:50:53, ...
6 years, 9 months ago (2014-03-28 12:05:36 UTC) #3
lushnikov
devtools lgtm
6 years, 9 months ago (2014-03-28 21:28:30 UTC) #4
eseidel
https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser-in.cpp File Source/core/css/parser/BisonCSSParser-in.cpp (right): https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser-in.cpp#newcode115 Source/core/css/parser/BisonCSSParser-in.cpp:115: BisonCSSParser::BisonCSSParser(Document* document) Why is this needed? We could also ...
6 years, 9 months ago (2014-03-28 22:09:23 UTC) #5
wibling-chromium
https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser-in.cpp File Source/core/css/parser/BisonCSSParser-in.cpp (right): https://codereview.chromium.org/216433003/diff/1/Source/core/css/parser/BisonCSSParser-in.cpp#newcode115 Source/core/css/parser/BisonCSSParser-in.cpp:115: BisonCSSParser::BisonCSSParser(Document* document) On 2014/03/28 22:09:24, eseidel wrote: > Why ...
6 years, 8 months ago (2014-03-31 08:06:35 UTC) #6
wibling-chromium
6 years, 8 months ago (2014-03-31 10:45:42 UTC) #7
wibling-chromium
PTAL
6 years, 8 months ago (2014-03-31 10:58:48 UTC) #8
zerny-chromium
lgtm
6 years, 8 months ago (2014-03-31 11:16:43 UTC) #9
haraken
LGTM
6 years, 8 months ago (2014-03-31 11:26:19 UTC) #10
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 8 months ago (2014-04-01 06:59:42 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/216433003/20001
6 years, 8 months ago (2014-04-01 06:59:52 UTC) #12
eseidel
lgtm
6 years, 8 months ago (2014-04-01 07:03:53 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 07:10:43 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.blink on win_blink_compile_dbg
6 years, 8 months ago (2014-04-01 07:10:43 UTC) #15
wibling-chromium
The CQ bit was checked by wibling@chromium.org
6 years, 8 months ago (2014-04-01 07:25:12 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/wibling@chromium.org/216433003/20001
6 years, 8 months ago (2014-04-01 07:25:22 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-01 08:02:42 UTC) #18
Message was sent while issue was closed.
Change committed as 170530

Powered by Google App Engine
This is Rietveld 408576698