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 1510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1521 __ push(rax); // value | 1521 __ push(rax); // value |
1522 __ Push(Smi::FromInt(NONE)); // PropertyAttributes | 1522 __ Push(Smi::FromInt(NONE)); // PropertyAttributes |
1523 __ Push(Smi::FromInt(strict_mode)); // Strict mode. | 1523 __ Push(Smi::FromInt(strict_mode)); // Strict mode. |
1524 __ push(rbx); // return address | 1524 __ push(rbx); // return address |
1525 | 1525 |
1526 // Do tail-call to runtime routine. | 1526 // Do tail-call to runtime routine. |
1527 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); | 1527 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); |
1528 } | 1528 } |
1529 | 1529 |
1530 | 1530 |
| 1531 void StoreIC::GenerateSlow(MacroAssembler* masm) { |
| 1532 // ----------- S t a t e ------------- |
| 1533 // -- rax : value |
| 1534 // -- rcx : key |
| 1535 // -- rdx : receiver |
| 1536 // -- rsp[0] : return address |
| 1537 // ----------------------------------- |
| 1538 |
| 1539 __ pop(rbx); |
| 1540 __ push(rdx); // receiver |
| 1541 __ push(rcx); // key |
| 1542 __ push(rax); // value |
| 1543 __ push(rbx); // return address |
| 1544 |
| 1545 // Do tail-call to runtime routine. |
| 1546 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate()); |
| 1547 __ TailCallExternalReference(ref, 3, 1); |
| 1548 } |
| 1549 |
| 1550 |
1531 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { | 1551 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) { |
1532 // ----------- S t a t e ------------- | 1552 // ----------- S t a t e ------------- |
1533 // -- rax : value | 1553 // -- rax : value |
1534 // -- rcx : key | 1554 // -- rcx : key |
1535 // -- rdx : receiver | 1555 // -- rdx : receiver |
1536 // -- rsp[0] : return address | 1556 // -- rsp[0] : return address |
1537 // ----------------------------------- | 1557 // ----------------------------------- |
1538 | 1558 |
1539 __ pop(rbx); | 1559 __ pop(rbx); |
1540 __ push(rdx); // receiver | 1560 __ push(rdx); // receiver |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1687 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1707 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1688 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1708 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1689 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1709 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1690 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1710 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1691 } | 1711 } |
1692 | 1712 |
1693 | 1713 |
1694 } } // namespace v8::internal | 1714 } } // namespace v8::internal |
1695 | 1715 |
1696 #endif // V8_TARGET_ARCH_X64 | 1716 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |