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

Unified Diff: third_party/WebKit/Source/core/css/parser/CSSTokenizer.h

Issue 1920583002: NOT FOR LANDING: Hack up CSSParser for speed. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: missing consts. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
diff --git a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
index 41fa90e32fc17a841cf61dacc7d42c326266a52d..53eda66437026a5f525d0c76523b79d367c71a6a 100644
--- a/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
+++ b/third_party/WebKit/Source/core/css/parser/CSSTokenizer.h
@@ -35,7 +35,7 @@ public:
private:
void storeString(const String& string) { m_stringPool.append(string); }
- Vector<CSSParserToken> m_tokens;
+ Vector<CSSParserToken, 32> m_tokens;
esprehn 2016/04/22 23:30:58 Lots of malloc in the profiles. By using inline ca
// We only allocate strings when escapes are used.
Vector<String> m_stringPool;
String m_string;
@@ -80,7 +80,7 @@ private:
using CodePoint = CSSParserToken (CSSTokenizer::*)(UChar);
static const CodePoint codePoints[];
- Vector<CSSParserTokenType> m_blockStack;
+ Vector<CSSParserTokenType, 8> m_blockStack;
esprehn 2016/04/22 23:30:58 ditto
CSSParserToken whiteSpace(UChar);
CSSParserToken leftParenthesis(UChar);

Powered by Google App Engine
This is Rietveld 408576698