From 9f9f27c3337589306b7f2248ccc472dd576a94c9 Mon Sep 17 00:00:00 2001 From: "balazs.kilvady" Date: Mon, 13 Jul 2015 06:36:03 -0700 Subject: [PATCH] MIPS64: Refine 'Remove unused byte from Map::instance_sizes field.' Port 2027335f1ce44b0c6523eb5e55881e2a4e162815 Original commit message: Note that there are currently no objects that require a pre-allocated properties backing store, all such slots are in-object properties from the begining. Hence {unused + pre_allocated - inobject == 0} holds. BUG= Review URL: https://codereview.chromium.org/1226363003 Cr-Commit-Position: refs/heads/master@{#29610} --- src/mips64/builtins-mips64.cc | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc index 6305a79203..0300dc8b9a 100644 --- a/src/mips64/builtins-mips64.cc +++ b/src/mips64/builtins-mips64.cc @@ -483,12 +483,8 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, Operand(static_cast(Map::kSlackTrackingCounterEnd))); // Allocate object with a slack. - __ lwu(a0, FieldMemOperand(a2, Map::kInstanceSizesOffset)); - __ Ext(a0, a0, Map::kInObjectPropertiesByte * kBitsPerByte, - kBitsPerByte); - __ lwu(a2, FieldMemOperand(a2, Map::kInstanceAttributesOffset)); - __ Ext(a2, a2, Map::kUnusedPropertyFieldsByte * kBitsPerByte, - kBitsPerByte); + __ lbu(a0, FieldMemOperand(a2, Map::kInObjectPropertiesOffset)); + __ lbu(a2, FieldMemOperand(a2, Map::kUnusedPropertyFieldsOffset)); __ dsubu(a0, a0, a2); __ dsll(at, a0, kPointerSizeLog2); __ daddu(a0, t1, at);