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 8344045: Fast elements conversions in crankshaft using generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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
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 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
1601 } 1601 }
1602 1602
1603 1603
1604 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) { 1604 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) {
1605 // ----------- S t a t e ------------- 1605 // ----------- S t a t e -------------
1606 // -- rdx : receiver 1606 // -- rdx : receiver
1607 // -- rsp[0] : return address 1607 // -- rsp[0] : return address
1608 // ----------------------------------- 1608 // -----------------------------------
1609 // Must return the modified receiver in eax. 1609 // Must return the modified receiver in eax.
1610 1610
1611 __ pop(rbx); 1611 FastElementsConversionStub::GenerateSmiOnlyToDouble(
1612 __ push(rdx); 1612 masm, FastElementsConversionStub::TRANSITION_ONLY);
1613 __ push(rbx); // return address
1614
1615 __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1);
1616 } 1613 }
1617 1614
1618 1615
1619 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject( 1616 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject(
1620 MacroAssembler* masm) { 1617 MacroAssembler* masm) {
1621 // ----------- S t a t e ------------- 1618 // ----------- S t a t e -------------
1622 // -- rdx : receiver 1619 // -- rdx : receiver
1623 // -- rsp[0] : return address 1620 // -- rsp[0] : return address
1624 // ----------------------------------- 1621 // -----------------------------------
1625 // Must return the modified receiver in eax. 1622 // Must return the modified receiver in eax.
1626 1623
1627 __ pop(rbx); 1624 FastElementsConversionStub::GenerateDoubleToObject(
1628 __ push(rdx); 1625 masm, FastElementsConversionStub::TRANSITION_ONLY);
1629 __ push(rbx); // return address
1630
1631 __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1);
1632 } 1626 }
1633 1627
1634 1628
1635 #undef __ 1629 #undef __
1636 1630
1637 1631
1638 Condition CompareIC::ComputeCondition(Token::Value op) { 1632 Condition CompareIC::ComputeCondition(Token::Value op) {
1639 switch (op) { 1633 switch (op) {
1640 case Token::EQ_STRICT: 1634 case Token::EQ_STRICT:
1641 case Token::EQ: 1635 case Token::EQ:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1725 Condition cc = *jmp_address == Assembler::kJncShortOpcode 1719 Condition cc = *jmp_address == Assembler::kJncShortOpcode
1726 ? not_zero 1720 ? not_zero
1727 : zero; 1721 : zero;
1728 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1722 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1729 } 1723 }
1730 1724
1731 1725
1732 } } // namespace v8::internal 1726 } } // namespace v8::internal
1733 1727
1734 #endif // V8_TARGET_ARCH_X64 1728 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698