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

Unified Diff: src/compiler/instruction.h

Issue 2572683005: [turbofan] Reserve the StateValueList's size before filling it (Closed)
Patch Set: Rename reserve to ReserveSize 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..a604f5f03b775461cae20351f3d81e55898fd908 100644
--- a/src/compiler/instruction.h
+++ b/src/compiler/instruction.h
@@ -1197,6 +1197,8 @@ class StateValueList {
ZoneVector<StateValueList*>::iterator nested_iterator;
};
+ void ReserveSize(size_t size) { fields_.reserve(size); }
+
StateValueList* PushRecursiveField(Zone* zone, size_t id) {
fields_.push_back(StateValueDescriptor::Recursive(id));
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