| Index: src/arm/stub-cache-arm.cc
|
| ===================================================================
|
| --- src/arm/stub-cache-arm.cc (revision 5878)
|
| +++ src/arm/stub-cache-arm.cc (working copy)
|
| @@ -2902,8 +2902,7 @@
|
| }
|
|
|
|
|
| -MaybeObject* ConstructStubCompiler::CompileConstructStub(
|
| - SharedFunctionInfo* shared) {
|
| +MaybeObject* ConstructStubCompiler::CompileConstructStub(JSFunction* function) {
|
| // ----------- S t a t e -------------
|
| // -- r0 : argc
|
| // -- r1 : constructor
|
| @@ -2987,6 +2986,7 @@
|
| // r7: undefined
|
| // Fill the initialized properties with a constant value or a passed argument
|
| // depending on the this.x = ...; assignment in the function.
|
| + SharedFunctionInfo* shared = function->shared();
|
| for (int i = 0; i < shared->this_property_assignments_count(); i++) {
|
| if (shared->IsThisPropertyAssignmentArgument(i)) {
|
| Label not_passed, next;
|
| @@ -3011,8 +3011,9 @@
|
| }
|
|
|
| // Fill the unused in-object property fields with undefined.
|
| + ASSERT(function->has_initial_map());
|
| for (int i = shared->this_property_assignments_count();
|
| - i < shared->CalculateInObjectProperties();
|
| + i < function->initial_map()->inobject_properties();
|
| i++) {
|
| __ str(r7, MemOperand(r5, kPointerSize, PostIndex));
|
| }
|
|
|