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

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

Issue 8305001: Introduce HTransitionElementsKind instruction. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: nits fixed Created 9 years, 2 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/runtime.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 1584 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 1595
1596 // Do tail-call to runtime routine. 1596 // Do tail-call to runtime routine.
1597 ExternalReference ref = force_generic 1597 ExternalReference ref = force_generic
1598 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric), 1598 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric),
1599 masm->isolate()) 1599 masm->isolate())
1600 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); 1600 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate());
1601 __ TailCallExternalReference(ref, 3, 1); 1601 __ TailCallExternalReference(ref, 3, 1);
1602 } 1602 }
1603 1603
1604 1604
1605 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) {
1606 // ----------- S t a t e -------------
1607 // -- rdx : receiver
1608 // -- rsp[0] : return address
1609 // -----------------------------------
1610 // Must return the modified receiver in eax.
1611
1612 __ pop(rbx);
1613 __ push(rdx);
1614 __ push(rbx); // return address
1615
1616 __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1);
1617 }
1618
1619
1620 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject(
1621 MacroAssembler* masm) {
1622 // ----------- S t a t e -------------
1623 // -- rdx : receiver
1624 // -- rsp[0] : return address
1625 // -----------------------------------
1626 // Must return the modified receiver in eax.
1627
1628 __ pop(rbx);
1629 __ push(rdx);
1630 __ push(rbx); // return address
1631
1632 __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1);
1633 }
1634
1635
1605 #undef __ 1636 #undef __
1606 1637
1607 1638
1608 Condition CompareIC::ComputeCondition(Token::Value op) { 1639 Condition CompareIC::ComputeCondition(Token::Value op) {
1609 switch (op) { 1640 switch (op) {
1610 case Token::EQ_STRICT: 1641 case Token::EQ_STRICT:
1611 case Token::EQ: 1642 case Token::EQ:
1612 return equal; 1643 return equal;
1613 case Token::LT: 1644 case Token::LT:
1614 return less; 1645 return less;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
1697 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1728 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1698 ? not_zero 1729 ? not_zero
1699 : zero; 1730 : zero;
1700 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1731 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1701 } 1732 }
1702 1733
1703 1734
1704 } } // namespace v8::internal 1735 } } // namespace v8::internal
1705 1736
1706 #endif // V8_TARGET_ARCH_X64 1737 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/runtime.cc ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698