Index: src/ia32/builtins-ia32.cc |
diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc |
index 6cbac53003171649209fa7dbdf8683169a1cb80d..8157b27666441ee6e8c3898eedf7aa6a3f8f6551 100644 |
--- a/src/ia32/builtins-ia32.cc |
+++ b/src/ia32/builtins-ia32.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 |