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

Unified Diff: src/compiler/move-optimizer.h

Issue 2481853002: [turbofan] Use a vector instead of a set in move optimizer. (Closed)
Patch Set: Comment Created 4 years, 1 month 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/move-optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/move-optimizer.h
diff --git a/src/compiler/move-optimizer.h b/src/compiler/move-optimizer.h
index ab7144e5b8f675609712805026464149131d3f1f..3844d330ec5f5982186b3256cb0ae42fbc5f7cda 100644
--- a/src/compiler/move-optimizer.h
+++ b/src/compiler/move-optimizer.h
@@ -53,6 +53,11 @@ class V8_EXPORT_PRIVATE MoveOptimizer final {
InstructionSequence* const code_;
MoveOpVector local_vector_;
+ // Reusable buffers for storing operand sets. We need at most two sets
+ // at any given time, so we create two buffers.
+ ZoneVector<InstructionOperand> operand_buffer1;
+ ZoneVector<InstructionOperand> operand_buffer2;
+
DISALLOW_COPY_AND_ASSIGN(MoveOptimizer);
};
« no previous file with comments | « no previous file | src/compiler/move-optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698