Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: src/x64/ic-x64.cc

Issue 6824074: X64: Tweak code generation slightly. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed review comments. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/disasm-x64.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698