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

Unified Diff: src/hydrogen-instructions.h

Issue 19956002: Support double allocations when folding allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 763b6369e3583a0a1c9b1a41bd3af7e93e8fe34e..2d1ff9e95f2de3014befc563c9d93ceb66e1af38 100644
--- a/src/hydrogen-instructions.h
+++ b/src/hydrogen-instructions.h
@@ -5070,9 +5070,13 @@ class HAllocate: public HTemplateInstruction<2> {
class HInnerAllocatedObject: public HTemplateInstruction<1> {
public:
- HInnerAllocatedObject(HValue* value, int offset, HType type = HType::Tagged())
+ HInnerAllocatedObject(HValue* value,
+ int offset,
+ HType type = HType::Tagged(),
+ bool double_alignment = false)
: offset_(offset),
- type_(type) {
+ type_(type),
+ double_alignment_(double_alignment) {
ASSERT(value->IsAllocate());
SetOperandAt(0, value);
set_representation(Representation::Tagged());
@@ -5089,11 +5093,16 @@ class HInnerAllocatedObject: public HTemplateInstruction<1> {
virtual void PrintDataTo(StringStream* stream);
+ bool MustAllocateDoubleAligned() {
+ return double_alignment_;
+ }
+
DECLARE_CONCRETE_INSTRUCTION(InnerAllocatedObject)
private:
int offset_;
HType type_;
+ bool double_alignment_;
};

Powered by Google App Engine
This is Rietveld 408576698