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

Unified Diff: third_party/WebKit/JavaScriptCore/parser/Lexer.cpp

Issue 20076: WebKit merge 40500:40539 [WebKit side] (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 10 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/JavaScriptCore/parser/Lexer.cpp
===================================================================
--- third_party/WebKit/JavaScriptCore/parser/Lexer.cpp (revision 9118)
+++ third_party/WebKit/JavaScriptCore/parser/Lexer.cpp (working copy)
@@ -80,8 +80,8 @@
, m_globalData(globalData)
, m_mainTable(JSC::mainTable)
{
- m_buffer8.reserveCapacity(initialReadBufferCapacity);
- m_buffer16.reserveCapacity(initialReadBufferCapacity);
+ m_buffer8.reserveInitialCapacity(initialReadBufferCapacity);
+ m_buffer16.reserveInitialCapacity(initialReadBufferCapacity);
}
Lexer::~Lexer()
@@ -884,11 +884,11 @@
m_identifiers.clear();
Vector<char> newBuffer8;
- newBuffer8.reserveCapacity(initialReadBufferCapacity);
+ newBuffer8.reserveInitialCapacity(initialReadBufferCapacity);
m_buffer8.swap(newBuffer8);
Vector<UChar> newBuffer16;
- newBuffer16.reserveCapacity(initialReadBufferCapacity);
+ newBuffer16.reserveInitialCapacity(initialReadBufferCapacity);
m_buffer16.swap(newBuffer16);
m_isReparsing = false;
« no previous file with comments | « third_party/WebKit/JavaScriptCore/JavaScriptCore.exp ('k') | third_party/WebKit/JavaScriptCore/runtime/JSByteArray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698