| 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 1569 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1580 } | 1580 } |
| 1581 | 1581 |
| 1582 | 1582 |
| 1583 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) { | 1583 void KeyedStoreIC::GenerateTransitionElementsSmiToDouble(MacroAssembler* masm) { |
| 1584 // ----------- S t a t e ------------- | 1584 // ----------- S t a t e ------------- |
| 1585 // -- edx : receiver | 1585 // -- edx : receiver |
| 1586 // -- esp[0] : return address | 1586 // -- esp[0] : return address |
| 1587 // ----------------------------------- | 1587 // ----------------------------------- |
| 1588 // Must return the modified receiver in eax. | 1588 // Must return the modified receiver in eax. |
| 1589 | 1589 |
| 1590 __ pop(ebx); | 1590 FastElementsConversionStub::GenerateSmiOnlyToDouble( |
| 1591 __ push(edx); | 1591 masm, FastElementsConversionStub::TRANSITION_ONLY); |
| 1592 __ push(ebx); // return address | |
| 1593 | |
| 1594 __ TailCallRuntime(Runtime::kTransitionElementsSmiToDouble, 1, 1); | |
| 1595 } | 1592 } |
| 1596 | 1593 |
| 1597 | 1594 |
| 1598 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject( | 1595 void KeyedStoreIC::GenerateTransitionElementsDoubleToObject( |
| 1599 MacroAssembler* masm) { | 1596 MacroAssembler* masm) { |
| 1600 // ----------- S t a t e ------------- | 1597 // ----------- S t a t e ------------- |
| 1601 // -- edx : receiver | 1598 // -- edx : receiver |
| 1602 // -- esp[0] : return address | 1599 // -- esp[0] : return address |
| 1603 // ----------------------------------- | 1600 // ----------------------------------- |
| 1604 // Must return the modified receiver in eax. | 1601 // Must return the modified receiver in eax. |
| 1605 | 1602 |
| 1606 __ pop(ebx); | 1603 FastElementsConversionStub::GenerateDoubleToObject( |
| 1607 __ push(edx); | 1604 masm, FastElementsConversionStub::TRANSITION_ONLY); |
| 1608 __ push(ebx); // return address | |
| 1609 | |
| 1610 __ TailCallRuntime(Runtime::kTransitionElementsDoubleToObject, 1, 1); | |
| 1611 } | 1605 } |
| 1612 | 1606 |
| 1613 | 1607 |
| 1614 #undef __ | 1608 #undef __ |
| 1615 | 1609 |
| 1616 | 1610 |
| 1617 Condition CompareIC::ComputeCondition(Token::Value op) { | 1611 Condition CompareIC::ComputeCondition(Token::Value op) { |
| 1618 switch (op) { | 1612 switch (op) { |
| 1619 case Token::EQ_STRICT: | 1613 case Token::EQ_STRICT: |
| 1620 case Token::EQ: | 1614 case Token::EQ: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1705 Condition cc = *jmp_address == Assembler::kJncShortOpcode | 1699 Condition cc = *jmp_address == Assembler::kJncShortOpcode |
| 1706 ? not_zero | 1700 ? not_zero |
| 1707 : zero; | 1701 : zero; |
| 1708 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1702 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1709 } | 1703 } |
| 1710 | 1704 |
| 1711 | 1705 |
| 1712 } } // namespace v8::internal | 1706 } } // namespace v8::internal |
| 1713 | 1707 |
| 1714 #endif // V8_TARGET_ARCH_IA32 | 1708 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |