| 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 638 | 638 |
| 639 CEntryStub stub(1); | 639 CEntryStub stub(1); |
| 640 CallStub(&stub); | 640 CallStub(&stub); |
| 641 } | 641 } |
| 642 | 642 |
| 643 | 643 |
| 644 void MacroAssembler::TailCallExternalReference(const ExternalReference& ext, | 644 void MacroAssembler::TailCallExternalReference(const ExternalReference& ext, |
| 645 int num_arguments, | 645 int num_arguments, |
| 646 int result_size) { | 646 int result_size) { |
| 647 // ----------- S t a t e ------------- | 647 // ----------- S t a t e ------------- |
| 648 // -- rsp[0] : return address | 648 // -- rsp[0] : return address |
| 649 // -- rsp[8] : argument num_arguments - 1 | 649 // -- rsp[8] : argument num_arguments - 1 |
| 650 // ... | 650 // ... |
| 651 // -- rsp[8 * num_arguments] : argument 0 (receiver) | 651 // -- rsp[8 * num_arguments] : argument 0 (receiver) |
| 652 // ----------------------------------- | 652 // ----------------------------------- |
| 653 | 653 |
| 654 // TODO(1236192): Most runtime routines don't need the number of | 654 // TODO(1236192): Most runtime routines don't need the number of |
| 655 // arguments passed in because it is constant. At some point we | 655 // arguments passed in because it is constant. At some point we |
| 656 // should remove this need and make the runtime routine entry code | 656 // should remove this need and make the runtime routine entry code |
| 657 // smarter. | 657 // smarter. |
| 658 Set(rax, num_arguments); | 658 Set(rax, num_arguments); |
| 659 JumpToExternalReference(ext, result_size); | 659 JumpToExternalReference(ext, result_size); |
| (...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4727 j(greater, &no_info_available); | 4727 j(greater, &no_info_available); |
| 4728 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), | 4728 CompareRoot(MemOperand(scratch_reg, -AllocationSiteInfo::kSize), |
| 4729 Heap::kAllocationSiteInfoMapRootIndex); | 4729 Heap::kAllocationSiteInfoMapRootIndex); |
| 4730 bind(&no_info_available); | 4730 bind(&no_info_available); |
| 4731 } | 4731 } |
| 4732 | 4732 |
| 4733 | 4733 |
| 4734 } } // namespace v8::internal | 4734 } } // namespace v8::internal |
| 4735 | 4735 |
| 4736 #endif // V8_TARGET_ARCH_X64 | 4736 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |