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

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

Issue 14834009: Call to the right slow method. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 7 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/arm/ic-arm.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 // -- rsp[0] : return address 1536 // -- rsp[0] : return address
1537 // ----------------------------------- 1537 // -----------------------------------
1538 1538
1539 __ pop(rbx); 1539 __ pop(rbx);
1540 __ push(rdx); // receiver 1540 __ push(rdx); // receiver
1541 __ push(rcx); // key 1541 __ push(rcx); // key
1542 __ push(rax); // value 1542 __ push(rax); // value
1543 __ push(rbx); // return address 1543 __ push(rbx); // return address
1544 1544
1545 // Do tail-call to runtime routine. 1545 // Do tail-call to runtime routine.
1546 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); 1546 ExternalReference ref(IC_Utility(kStoreIC_Slow), masm->isolate());
1547 __ TailCallExternalReference(ref, 3, 1); 1547 __ TailCallExternalReference(ref, 3, 1);
1548 } 1548 }
1549 1549
1550 1550
1551 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { 1551 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
1552 // ----------- S t a t e ------------- 1552 // ----------- S t a t e -------------
1553 // -- rax : value 1553 // -- rax : value
1554 // -- rcx : key 1554 // -- rcx : key
1555 // -- rdx : receiver 1555 // -- rdx : receiver
1556 // -- rsp[0] : return address 1556 // -- rsp[0] : return address
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
1707 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1707 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1708 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1708 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1709 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1709 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1710 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1710 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1711 } 1711 }
1712 1712
1713 1713
1714 } } // namespace v8::internal 1714 } } // namespace v8::internal
1715 1715
1716 #endif // V8_TARGET_ARCH_X64 1716 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/arm/ic-arm.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698