Chromium Code Reviews| 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_; |
| }; |