| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 495 // address to store into and fall through to fast case. | 495 // address to store into and fall through to fast case. |
| 496 __ cmpl(rbx, FieldOperand(rdx, JSArray::kLengthOffset)); | 496 __ cmpl(rbx, FieldOperand(rdx, JSArray::kLengthOffset)); |
| 497 __ j(above_equal, &extra); | 497 __ j(above_equal, &extra); |
| 498 | 498 |
| 499 | 499 |
| 500 // Fast case: Do the store. | 500 // Fast case: Do the store. |
| 501 __ bind(&fast); | 501 __ bind(&fast); |
| 502 // rax: value | 502 // rax: value |
| 503 // rcx: FixedArray | 503 // rcx: FixedArray |
| 504 // rbx: index (as a smi) | 504 // rbx: index (as a smi) |
| 505 __ movq(Operand(rcx, rbx, times_4, FixedArray::kHeaderSize - kHeapObjectTag), | 505 __ movq(Operand(rcx, rbx, times_half_pointer_size, |
| 506 FixedArray::kHeaderSize - kHeapObjectTag), |
| 506 rax); | 507 rax); |
| 507 // Update write barrier for the elements array address. | 508 // Update write barrier for the elements array address. |
| 508 __ movq(rdx, rax); | 509 __ movq(rdx, rax); |
| 509 __ RecordWrite(rcx, 0, rdx, rbx); | 510 __ RecordWrite(rcx, 0, rdx, rbx); |
| 510 __ ret(0); | 511 __ ret(0); |
| 511 } | 512 } |
| 512 | 513 |
| 513 | 514 |
| 514 void CallIC::Generate(MacroAssembler* masm, | 515 void CallIC::Generate(MacroAssembler* masm, |
| 515 int argc, | 516 int argc, |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 715 | 716 |
| 716 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { | 717 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 717 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); | 718 Generate(masm, ExternalReference(IC_Utility(kStoreIC_Miss))); |
| 718 } | 719 } |
| 719 | 720 |
| 720 | 721 |
| 721 #undef __ | 722 #undef __ |
| 722 | 723 |
| 723 | 724 |
| 724 } } // namespace v8::internal | 725 } } // namespace v8::internal |
| OLD | NEW |