| 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 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1660 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, | 1660 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, |
| 1661 StrictModeFlag strict_mode) { | 1661 StrictModeFlag strict_mode) { |
| 1662 // ----------- S t a t e ------------- | 1662 // ----------- S t a t e ------------- |
| 1663 // -- x0 : value | 1663 // -- x0 : value |
| 1664 // -- x1 : receiver | 1664 // -- x1 : receiver |
| 1665 // -- x2 : name | 1665 // -- x2 : name |
| 1666 // -- lr : return address | 1666 // -- lr : return address |
| 1667 // ----------------------------------- | 1667 // ----------------------------------- |
| 1668 | 1668 |
| 1669 // Probe the stub cache. | 1669 // Probe the stub cache. |
| 1670 Code::Flags flags = | 1670 Code::Flags flags = Code::ComputeFlags(Code::STUB, MONOMORPHIC, strict_mode, |
| 1671 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode); | 1671 Code::NORMAL, Code::STORE_IC); |
| 1672 | 1672 |
| 1673 Isolate::Current()->stub_cache()->GenerateProbe( | 1673 Isolate::Current()->stub_cache()->GenerateProbe( |
| 1674 masm, flags, x1, x2, x3, x4, x5, x6); | 1674 masm, flags, x1, x2, x3, x4, x5, x6); |
| 1675 | 1675 |
| 1676 // Cache miss: Jump to runtime. | 1676 // Cache miss: Jump to runtime. |
| 1677 GenerateMiss(masm); | 1677 GenerateMiss(masm); |
| 1678 } | 1678 } |
| 1679 | 1679 |
| 1680 | 1680 |
| 1681 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 1681 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1850 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1850 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
| 1851 // This is JumpIfSmi(smi_reg, branch_imm). | 1851 // This is JumpIfSmi(smi_reg, branch_imm). |
| 1852 patcher.tbz(smi_reg, 0, branch_imm); | 1852 patcher.tbz(smi_reg, 0, branch_imm); |
| 1853 } | 1853 } |
| 1854 } | 1854 } |
| 1855 | 1855 |
| 1856 | 1856 |
| 1857 } } // namespace v8::internal | 1857 } } // namespace v8::internal |
| 1858 | 1858 |
| 1859 #endif // V8_TARGET_ARCH_A64 | 1859 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |