From 03b435ee922a7bc0ec9f9ae9765b0484c7ed4870 Mon Sep 17 00:00:00 2001 From: "plind44@gmail.com" Date: Thu, 20 Mar 2014 19:12:08 +0000 Subject: [PATCH] MIPS: Fix register usage of r20076. BUG= R=plind44@gmail.com Review URL: https://codereview.chromium.org/206763002 Patch from Balazs Kilvady . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@20139 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/builtins-mips.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc index 628dc21..63eb5fc 100644 --- a/src/mips/builtins-mips.cc +++ b/src/mips/builtins-mips.cc @@ -473,8 +473,10 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, __ lw(a0, FieldMemOperand(a2, Map::kInstanceSizesOffset)); __ Ext(a0, a0, Map::kPreAllocatedPropertyFieldsByte * kBitsPerByte, kBitsPerByte); - __ sll(t0, a0, kPointerSizeLog2); - __ addu(a0, t5, t0); + __ sll(at, a0, kPointerSizeLog2); + __ addu(a0, t5, at); + __ sll(at, a3, kPointerSizeLog2); + __ Addu(t6, t4, Operand(at)); // End of object. // a0: offset of first field after pre-allocated fields if (FLAG_debug_code) { __ Assert(le, kUnexpectedNumberOfPreAllocatedPropertyFields, @@ -483,9 +485,7 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, __ InitializeFieldsWithFiller(t5, a0, t7); // To allow for truncation. __ LoadRoot(t7, Heap::kOnePointerFillerMapRootIndex); - __ sll(at, a3, kPointerSizeLog2); - __ Addu(a0, t4, Operand(at)); // End of object. - __ InitializeFieldsWithFiller(t5, a0, t7); + __ InitializeFieldsWithFiller(t5, t6, t7); } else if (create_memento) { __ Subu(t7, a3, Operand(AllocationMemento::kSize / kPointerSize)); __ sll(at, t7, kPointerSizeLog2); -- 2.7.4