| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 | 789 |
| 790 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 790 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 791 // ----------- S t a t e ------------- | 791 // ----------- S t a t e ------------- |
| 792 // -- x2 : name | 792 // -- x2 : name |
| 793 // -- lr : return address | 793 // -- lr : return address |
| 794 // -- x0 : receiver | 794 // -- x0 : receiver |
| 795 // ----------------------------------- | 795 // ----------------------------------- |
| 796 | 796 |
| 797 // Probe the stub cache. | 797 // Probe the stub cache. |
| 798 Code::Flags flags = Code::ComputeFlags( | 798 Code::Flags flags = Code::ComputeFlags( |
| 799 Code::STUB, MONOMORPHIC, Code::kNoExtraICState, | 799 Code::HANDLER, MONOMORPHIC, Code::kNoExtraICState, |
| 800 Code::NORMAL, Code::LOAD_IC); | 800 Code::NORMAL, Code::LOAD_IC); |
| 801 masm->isolate()->stub_cache()->GenerateProbe( | 801 masm->isolate()->stub_cache()->GenerateProbe( |
| 802 masm, flags, x0, x2, x3, x4, x5, x6); | 802 masm, flags, x0, x2, x3, x4, x5, x6); |
| 803 | 803 |
| 804 // Cache miss: Jump to runtime. | 804 // Cache miss: Jump to runtime. |
| 805 GenerateMiss(masm); | 805 GenerateMiss(masm); |
| 806 } | 806 } |
| 807 | 807 |
| 808 | 808 |
| 809 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 809 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
| (...skipping 796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1606 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, | 1606 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, |
| 1607 StrictModeFlag strict_mode) { | 1607 StrictModeFlag strict_mode) { |
| 1608 // ----------- S t a t e ------------- | 1608 // ----------- S t a t e ------------- |
| 1609 // -- x0 : value | 1609 // -- x0 : value |
| 1610 // -- x1 : receiver | 1610 // -- x1 : receiver |
| 1611 // -- x2 : name | 1611 // -- x2 : name |
| 1612 // -- lr : return address | 1612 // -- lr : return address |
| 1613 // ----------------------------------- | 1613 // ----------------------------------- |
| 1614 | 1614 |
| 1615 // Probe the stub cache. | 1615 // Probe the stub cache. |
| 1616 Code::Flags flags = Code::ComputeFlags(Code::STUB, MONOMORPHIC, strict_mode, | 1616 Code::Flags flags = Code::ComputeFlags( |
| 1617 Code::NORMAL, Code::STORE_IC); | 1617 Code::HANDLER, MONOMORPHIC, strict_mode, |
| 1618 Code::NORMAL, Code::STORE_IC); |
| 1618 | 1619 |
| 1619 masm->isolate()->stub_cache()->GenerateProbe( | 1620 masm->isolate()->stub_cache()->GenerateProbe( |
| 1620 masm, flags, x1, x2, x3, x4, x5, x6); | 1621 masm, flags, x1, x2, x3, x4, x5, x6); |
| 1621 | 1622 |
| 1622 // Cache miss: Jump to runtime. | 1623 // Cache miss: Jump to runtime. |
| 1623 GenerateMiss(masm); | 1624 GenerateMiss(masm); |
| 1624 } | 1625 } |
| 1625 | 1626 |
| 1626 | 1627 |
| 1627 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 1628 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1796 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1797 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
| 1797 // This is JumpIfSmi(smi_reg, branch_imm). | 1798 // This is JumpIfSmi(smi_reg, branch_imm). |
| 1798 patcher.tbz(smi_reg, 0, branch_imm); | 1799 patcher.tbz(smi_reg, 0, branch_imm); |
| 1799 } | 1800 } |
| 1800 } | 1801 } |
| 1801 | 1802 |
| 1802 | 1803 |
| 1803 } } // namespace v8::internal | 1804 } } // namespace v8::internal |
| 1804 | 1805 |
| 1805 #endif // V8_TARGET_ARCH_A64 | 1806 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |