| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 __ RecordWrite(ebx, edx, ecx, kDontSaveFPRegs, OMIT_REMEMBERED_SET); | 1540 __ RecordWrite(ebx, edx, ecx, kDontSaveFPRegs, OMIT_REMEMBERED_SET); |
| 1541 | 1541 |
| 1542 // Restore receiver to edx as finish sequence assumes it's here. | 1542 // Restore receiver to edx as finish sequence assumes it's here. |
| 1543 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); | 1543 __ mov(edx, Operand(esp, (argc + 1) * kPointerSize)); |
| 1544 | 1544 |
| 1545 // Increment element's and array's sizes. | 1545 // Increment element's and array's sizes. |
| 1546 __ add(FieldOperand(ebx, FixedArray::kLengthOffset), | 1546 __ add(FieldOperand(ebx, FixedArray::kLengthOffset), |
| 1547 Immediate(Smi::FromInt(kAllocationDelta))); | 1547 Immediate(Smi::FromInt(kAllocationDelta))); |
| 1548 __ mov(FieldOperand(edx, JSArray::kLengthOffset), eax); | 1548 __ mov(FieldOperand(edx, JSArray::kLengthOffset), eax); |
| 1549 | 1549 |
| 1550 // Elements are in new space, so write barrier is not required. | |
| 1551 __ ret((argc + 1) * kPointerSize); | 1550 __ ret((argc + 1) * kPointerSize); |
| 1552 } | 1551 } |
| 1553 | 1552 |
| 1554 __ bind(&call_builtin); | 1553 __ bind(&call_builtin); |
| 1555 __ TailCallExternalReference( | 1554 __ TailCallExternalReference( |
| 1556 ExternalReference(Builtins::c_ArrayPush, isolate()), | 1555 ExternalReference(Builtins::c_ArrayPush, isolate()), |
| 1557 argc + 1, | 1556 argc + 1, |
| 1558 1); | 1557 1); |
| 1559 } | 1558 } |
| 1560 | 1559 |
| (...skipping 2308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3869 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); | 3868 masm->isolate()->builtins()->KeyedStoreIC_MissForceGeneric(); |
| 3870 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET); | 3869 __ jmp(ic_force_generic, RelocInfo::CODE_TARGET); |
| 3871 } | 3870 } |
| 3872 | 3871 |
| 3873 | 3872 |
| 3874 #undef __ | 3873 #undef __ |
| 3875 | 3874 |
| 3876 } } // namespace v8::internal | 3875 } } // namespace v8::internal |
| 3877 | 3876 |
| 3878 #endif // V8_TARGET_ARCH_IA32 | 3877 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |