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

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: Removed MIPs changes, and found a bug. COPY_ON_WRITE shallow array stub didn't track allocation inf… 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..9fd405c455fa28ba45bc4abaebd8ef6c01b067c5 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,
+ AllocationSiteInfoMode mode)
: HMaterializedLiteral<1>(literal_index, depth),
boilerplate_(boilerplate),
- total_size_(total_size) {
+ total_size_(total_size),
+ allocation_site_info_mode_(mode) {
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_; }
-
+ AllocationSiteInfoMode allocation_site_info_mode() const {
+ return allocation_site_info_mode_;
+ }
virtual Representation RequiredInputRepresentation(int index) {
return Representation::Tagged();
}
@@ -5015,6 +5019,7 @@ class HFastLiteral: public HMaterializedLiteral<1> {
private:
Handle<JSObject> boilerplate_;
int total_size_;
+ AllocationSiteInfoMode allocation_site_info_mode_;
};

Powered by Google App Engine
This is Rietveld 408576698