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

Unified Diff: src/x64/lithium-codegen-x64.cc

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/x64/lithium-codegen-x64.cc
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc
index 475c405d0d67823ca5c7c2279f054b78f683123f..1c7df8e5e4553a45b608217f586fd554c9d30b6c 100644
--- a/src/x64/lithium-codegen-x64.cc
+++ b/src/x64/lithium-codegen-x64.cc
@@ -3910,6 +3910,11 @@ void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
Register result = ToRegister(instr->result());
Register base = ToRegister(instr->base_object());
+ if (instr->hydrogen()->MustAllocateDoubleAligned()) {
+ ASSERT(kPointerAlignment == kDoubleAlignment);
+ __ testq(result, Immediate(kDoubleAlignmentMask));
+ __ Check(zero, "Allocation is not double aligned");
+ }
__ lea(result, Operand(base, instr->offset()));
}

Powered by Google App Engine
This is Rietveld 408576698