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

Unified Diff: src/hydrogen-instructions.h

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Code cleanup Created 7 years, 11 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: src/hydrogen-instructions.h
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
index 23390dc1115a48df3305bad9bc237afb6c3e45ad..3c882a999ff269dc47f18f9eb60f2d2fe236a4c3 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -4988,10 +4988,12 @@ class HFastLiteral: public HMaterializedLiteral<1> {
Handle<JSObject> boilerplate,
int total_size,
int literal_index,
- int depth)
+ int depth,
+ bool create_allocation_site_info = false)
danno 2013/01/10 22:58:59 Use AllocationSiteInfoMode.
mvstanton 2013/01/11 13:43:01 Done.
: HMaterializedLiteral<1>(literal_index, depth),
boilerplate_(boilerplate),
- total_size_(total_size) {
+ total_size_(total_size),
+ create_allocation_site_info_(create_allocation_site_info) {
SetOperandAt(0, context);
SetGVNFlag(kChangesNewSpacePromotion);
}
@@ -5004,7 +5006,9 @@ class HFastLiteral: public HMaterializedLiteral<1> {
HValue* context() { return OperandAt(0); }
Handle<JSObject> boilerplate() const { return boilerplate_; }
int total_size() const { return total_size_; }
-
+ bool create_allocation_site_info() const {
+ return create_allocation_site_info_;
+ }
virtual Representation RequiredInputRepresentation(int index) {
return Representation::Tagged();
}
@@ -5015,6 +5019,7 @@ class HFastLiteral: public HMaterializedLiteral<1> {
private:
Handle<JSObject> boilerplate_;
int total_size_;
+ bool create_allocation_site_info_;
};

Powered by Google App Engine
This is Rietveld 408576698