Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 311290ff2f96a7e10f266458fbb6b696b324d942..3b420f9e93c928b1be43969ae85fca384bd6e7de 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -358,17 +358,9 @@ static void Generate_JSConstructStubHelper(MacroAssembler* masm, |
// ebx: JSObject |
// edi: FixedArray |
// ecx: start of next object |
- { Label loop, entry; |
- __ mov(edx, factory->undefined_value()); |
- __ lea(eax, Operand(edi, FixedArray::kHeaderSize)); |
- __ jmp(&entry); |
- __ bind(&loop); |
- __ mov(Operand(eax, 0), edx); |
- __ add(eax, Immediate(kPointerSize)); |
- __ bind(&entry); |
- __ cmp(eax, ecx); |
- __ j(below, &loop); |
- } |
+ __ mov(edx, factory->undefined_value()); |
+ __ lea(eax, Operand(edi, FixedArray::kHeaderSize)); |
+ __ InitializeFieldsWithFiller(eax, ecx, edx); |
// Store the initialized FixedArray into the properties field of |
// the JSObject |