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

Unified Diff: src/compiler/instruction.h

Issue 2572683005: [turbofan] Reserve the StateValueList's size before filling it (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/instruction.h
diff --git a/src/compiler/instruction.h b/src/compiler/instruction.h
index 084f397ceb920a1875c2335fd63ef6ccaa3bfd92..6c643554623c6a22ac9398c6f50ffb50e4426aec 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -1156,6 +1156,8 @@ class StateValueList {
size_t size() { return fields_.size(); }
+ void reserve(size_t size) { fields_.reserve(size); }
Jarin 2016/12/14 14:26:28 style&naming nit: reserve -> ReserveSize
+
struct Value {
StateValueDescriptor* desc;
StateValueList* nested;
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698