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 1622 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1633 __ JumpIfSmi(rdx, &miss); | 1633 __ JumpIfSmi(rdx, &miss); |
1634 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi, | 1634 CheckPrototypes(Handle<JSObject>::cast(object), rdx, holder, rbx, rax, rdi, |
1635 name, &miss); | 1635 name, &miss); |
1636 } else { | 1636 } else { |
1637 ASSERT(cell->value() == *function); | 1637 ASSERT(cell->value() == *function); |
1638 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, | 1638 GenerateGlobalReceiverCheck(Handle<JSObject>::cast(object), holder, name, |
1639 &miss); | 1639 &miss); |
1640 GenerateLoadFunctionFromCell(cell, function, &miss); | 1640 GenerateLoadFunctionFromCell(cell, function, &miss); |
1641 } | 1641 } |
1642 | 1642 |
1643 Handle<Smi> kind(Smi::FromInt(GetInitialFastElementsKind()), isolate()); | 1643 Handle<AllocationSite> site = isolate()->factory()->NewAllocationSite(); |
1644 Handle<Cell> kind_feedback_cell = | 1644 site->set_payload(Smi::FromInt(GetInitialFastElementsKind())); |
1645 isolate()->factory()->NewCell(kind); | 1645 Handle<Cell> site_feedback_cell = isolate()->factory()->NewCell(site); |
1646 __ movq(rax, Immediate(argc)); | 1646 __ movq(rax, Immediate(argc)); |
1647 __ Move(rbx, kind_feedback_cell); | 1647 __ Move(rbx, site_feedback_cell); |
1648 __ Move(rdi, function); | 1648 __ Move(rdi, function); |
1649 | 1649 |
1650 ArrayConstructorStub stub(isolate()); | 1650 ArrayConstructorStub stub(isolate()); |
1651 __ TailCallStub(&stub); | 1651 __ TailCallStub(&stub); |
1652 | 1652 |
1653 __ bind(&miss); | 1653 __ bind(&miss); |
1654 GenerateMissBranch(); | 1654 GenerateMissBranch(); |
1655 | 1655 |
1656 // Return the generated code. | 1656 // Return the generated code. |
1657 return GetCode(type, name); | 1657 return GetCode(type, name); |
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3572 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3572 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
3573 } | 3573 } |
3574 } | 3574 } |
3575 | 3575 |
3576 | 3576 |
3577 #undef __ | 3577 #undef __ |
3578 | 3578 |
3579 } } // namespace v8::internal | 3579 } } // namespace v8::internal |
3580 | 3580 |
3581 #endif // V8_TARGET_ARCH_X64 | 3581 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |