| 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 1611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1622 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi, | 1622 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi, |
| 1623 name, &miss); | 1623 name, &miss); |
| 1624 } else { | 1624 } else { |
| 1625 ASSERT(cell->value() == *function); | 1625 ASSERT(cell->value() == *function); |
| 1626 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, | 1626 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, |
| 1627 &miss); | 1627 &miss); |
| 1628 GenerateLoadFunctionFromCell(cell, function, &miss); | 1628 GenerateLoadFunctionFromCell(cell, function, &miss); |
| 1629 } | 1629 } |
| 1630 | 1630 |
| 1631 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); | 1631 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); |
| 1632 site->set_transition_info(Smi::FromInt(GetInitialFastElementsKind())); | 1632 site->SetElementsKind(GetInitialFastElementsKind()); |
| 1633 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); | 1633 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); |
| 1634 __ movq(rax, Immediate(argc)); | 1634 __ movq(rax, Immediate(argc)); |
| 1635 __ Move(rbx, site_feedback_cell); | 1635 __ Move(rbx, site_feedback_cell); |
| 1636 __ Move(rdi, function); | 1636 __ Move(rdi, function); |
| 1637 | 1637 |
| 1638 ArrayConstructorStub stub(isolate()); | 1638 ArrayConstructorStub stub(isolate()); |
| 1639 __ TailCallStub(&stub); | 1639 __ TailCallStub(&stub); |
| 1640 | 1640 |
| 1641 __ bind(&miss); | 1641 __ bind(&miss); |
| 1642 GenerateMissBranch(); | 1642 GenerateMissBranch(); |
| (...skipping 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3146 // ----------------------------------- | 3146 // ----------------------------------- |
| 3147 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); | 3147 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); |
| 3148 } | 3148 } |
| 3149 | 3149 |
| 3150 | 3150 |
| 3151 #undef __ | 3151 #undef __ |
| 3152 | 3152 |
| 3153 } } // namespace v8::internal | 3153 } } // namespace v8::internal |
| 3154 | 3154 |
| 3155 #endif // V8_TARGET_ARCH_X64 | 3155 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |