Index: src/hydrogen-instructions.h |
diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h |
index 6ec698179a9b7d7ed797e447297d60d8019084f4..53e76a6030a48e5466d05e4e14ab7c7362ea3894 100644 |
--- a/src/hydrogen-instructions.h |
+++ b/src/hydrogen-instructions.h |
@@ -4948,6 +4948,19 @@ class HAllocate: public HTemplateInstruction<2> { |
SetGVNFlag(kChangesNewSpacePromotion); |
} |
+ static Flags DefaultFlags() { |
+ return CAN_ALLOCATE_IN_NEW_SPACE; |
+ } |
+ |
+ static Flags DefaultFlags(ElementsKind kind) { |
+ Flags flags = CAN_ALLOCATE_IN_NEW_SPACE; |
+ if (IsFastDoubleElementsKind(kind)) { |
+ flags = static_cast<HAllocate::Flags>( |
+ flags | HAllocate::ALLOCATE_DOUBLE_ALIGNED); |
+ } |
+ return flags; |
+ } |
+ |
HValue* context() { return OperandAt(0); } |
HValue* size() { return OperandAt(1); } |