Revision: 25200
Author: [email protected]
Date: Thu Nov 6 14:57:54 2014 UTC
Log: [turbofan] Allocate a small amount of slack space to graph
builder environments.
[email protected]
BUG=
Review URL: https://codereview.chromium.org/709463003
https://code.google.com/p/v8/source/detail?r=25200
Modified:
/branches/bleeding_edge/src/compiler/graph-builder.cc
=======================================
--- /branches/bleeding_edge/src/compiler/graph-builder.cc Wed Oct 29
18:46:44 2014 UTC
+++ /branches/bleeding_edge/src/compiler/graph-builder.cc Thu Nov 6
14:57:54 2014 UTC
@@ -125,7 +125,11 @@
: builder_(copy.builder()),
control_dependency_(copy.control_dependency_),
effect_dependency_(copy.effect_dependency_),
- values_(copy.values_) {}
+ values_(copy.zone()) {
+ const size_t kStackEstimate = 7; // optimum from experimentation!
+ values_.reserve(copy.values_.size() + kStackEstimate);
+ values_.insert(values_.begin(), copy.values_.begin(),
copy.values_.end());
+}
void StructuredGraphBuilder::Environment::Merge(Environment* other) {
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.