OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 1668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1679 CheckPrototypes(Handle<JSObject>::cast(object), receiver, holder, r3, r0, | 1679 CheckPrototypes(Handle<JSObject>::cast(object), receiver, holder, r3, r0, |
1680 r4, name, &miss); | 1680 r4, name, &miss); |
1681 } else { | 1681 } else { |
1682 ASSERT(cell->value() == *function); | 1682 ASSERT(cell->value() == *function); |
1683 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, | 1683 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, |
1684 &miss); | 1684 &miss); |
1685 GenerateLoadFunctionFromCell(cell, function, &miss); | 1685 GenerateLoadFunctionFromCell(cell, function, &miss); |
1686 } | 1686 } |
1687 | 1687 |
1688 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); | 1688 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); |
1689 site->set_transition_info(Smi::FromInt(GetInitialFastElementsKind())); | 1689 site->SetElementsKind(GetInitialFastElementsKind()); |
1690 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); | 1690 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); |
1691 __ mov(r0, Operand(argc)); | 1691 __ mov(r0, Operand(argc)); |
1692 __ mov(r2, Operand(site_feedback_cell)); | 1692 __ mov(r2, Operand(site_feedback_cell)); |
1693 __ mov(r1, Operand(function)); | 1693 __ mov(r1, Operand(function)); |
1694 | 1694 |
1695 ArrayConstructorStub stub(isolate()); | 1695 ArrayConstructorStub stub(isolate()); |
1696 __ TailCallStub(&stub); | 1696 __ TailCallStub(&stub); |
1697 | 1697 |
1698 __ bind(&miss); | 1698 __ bind(&miss); |
1699 GenerateMissBranch(); | 1699 GenerateMissBranch(); |
(...skipping 1460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3160 // ----------------------------------- | 3160 // ----------------------------------- |
3161 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3161 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
3162 } | 3162 } |
3163 | 3163 |
3164 | 3164 |
3165 #undef __ | 3165 #undef __ |
3166 | 3166 |
3167 } } // namespace v8::internal | 3167 } } // namespace v8::internal |
3168 | 3168 |
3169 #endif // V8_TARGET_ARCH_ARM | 3169 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |