OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 992 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1003 | 1003 |
1004 // Enter an internal frame. | 1004 // Enter an internal frame. |
1005 __ EnterInternalFrame(); | 1005 __ EnterInternalFrame(); |
1006 | 1006 |
1007 // Push the receiver and the name of the function. | 1007 // Push the receiver and the name of the function. |
1008 __ push(rdx); | 1008 __ push(rdx); |
1009 __ push(rcx); | 1009 __ push(rcx); |
1010 | 1010 |
1011 // Call the entry. | 1011 // Call the entry. |
1012 CEntryStub stub(1); | 1012 CEntryStub stub(1); |
1013 __ movq(rax, Immediate(2)); | 1013 __ Set(rax, 2); |
1014 __ LoadAddress(rbx, ExternalReference(IC_Utility(id), masm->isolate())); | 1014 __ LoadAddress(rbx, ExternalReference(IC_Utility(id), masm->isolate())); |
1015 __ CallStub(&stub); | 1015 __ CallStub(&stub); |
1016 | 1016 |
1017 // Move result to rdi and exit the internal frame. | 1017 // Move result to rdi and exit the internal frame. |
1018 __ movq(rdi, rax); | 1018 __ movq(rdi, rax); |
1019 __ LeaveInternalFrame(); | 1019 __ LeaveInternalFrame(); |
1020 | 1020 |
1021 // Check if the receiver is a global object of some sort. | 1021 // Check if the receiver is a global object of some sort. |
1022 // This can happen only for regular CallIC but not KeyedCallIC. | 1022 // This can happen only for regular CallIC but not KeyedCallIC. |
1023 if (id == IC::kCallIC_Miss) { | 1023 if (id == IC::kCallIC_Miss) { |
(...skipping 719 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1743 Condition cc = *jmp_address == Assembler::kJncShortOpcode | 1743 Condition cc = *jmp_address == Assembler::kJncShortOpcode |
1744 ? not_zero | 1744 ? not_zero |
1745 : zero; | 1745 : zero; |
1746 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1746 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1747 } | 1747 } |
1748 | 1748 |
1749 | 1749 |
1750 } } // namespace v8::internal | 1750 } } // namespace v8::internal |
1751 | 1751 |
1752 #endif // V8_TARGET_ARCH_X64 | 1752 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |