OLD | NEW |
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 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1523 | 1523 |
1524 // Do tail-call to runtime routine. | 1524 // Do tail-call to runtime routine. |
1525 ExternalReference ref = miss_mode == MISS_FORCE_GENERIC | 1525 ExternalReference ref = miss_mode == MISS_FORCE_GENERIC |
1526 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric), | 1526 ? ExternalReference(IC_Utility(kKeyedStoreIC_MissForceGeneric), |
1527 masm->isolate()) | 1527 masm->isolate()) |
1528 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); | 1528 : ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); |
1529 __ TailCallExternalReference(ref, 3, 1); | 1529 __ TailCallExternalReference(ref, 3, 1); |
1530 } | 1530 } |
1531 | 1531 |
1532 | 1532 |
| 1533 void StoreIC::GenerateSlow(MacroAssembler* masm) { |
| 1534 // ----------- S t a t e ------------- |
| 1535 // -- eax : value |
| 1536 // -- ecx : key |
| 1537 // -- edx : receiver |
| 1538 // -- esp[0] : return address |
| 1539 // ----------------------------------- |
| 1540 |
| 1541 __ pop(ebx); |
| 1542 __ push(edx); |
| 1543 __ push(ecx); |
| 1544 __ push(eax); |
| 1545 __ push(ebx); // return address |
| 1546 |
| 1547 // Do tail-call to runtime routine. |
| 1548 ExternalReference ref(IC_Utility(kStoreIC_Slow), masm->isolate()); |
| 1549 __ TailCallExternalReference(ref, 3, 1); |
| 1550 } |
| 1551 |
| 1552 |
1533 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { | 1553 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { |
1534 // ----------- S t a t e ------------- | 1554 // ----------- S t a t e ------------- |
1535 // -- eax : value | 1555 // -- eax : value |
1536 // -- ecx : key | 1556 // -- ecx : key |
1537 // -- edx : receiver | 1557 // -- edx : receiver |
1538 // -- esp[0] : return address | 1558 // -- esp[0] : return address |
1539 // ----------------------------------- | 1559 // ----------------------------------- |
1540 | 1560 |
1541 __ pop(ebx); | 1561 __ pop(ebx); |
1542 __ push(edx); | 1562 __ push(edx); |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1672 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1692 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1673 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1693 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1674 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1694 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1675 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1695 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1676 } | 1696 } |
1677 | 1697 |
1678 | 1698 |
1679 } } // namespace v8::internal | 1699 } } // namespace v8::internal |
1680 | 1700 |
1681 #endif // V8_TARGET_ARCH_IA32 | 1701 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |