| 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 769 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 780 | 780 |
| 781 | 781 |
| 782 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { | 782 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { |
| 783 // ----------- S t a t e ------------- | 783 // ----------- S t a t e ------------- |
| 784 // -- x2 : name | 784 // -- x2 : name |
| 785 // -- lr : return address | 785 // -- lr : return address |
| 786 // -- x0 : receiver | 786 // -- x0 : receiver |
| 787 // ----------------------------------- | 787 // ----------------------------------- |
| 788 | 788 |
| 789 // Probe the stub cache. | 789 // Probe the stub cache. |
| 790 ExtraICState extra_ic_state = IC::ComputeExtraICState(mode); | 790 ExtraICState extra_ic_state = LoadIC::ComputeExtraICState(mode); |
| 791 Code::Flags flags = Code::ComputeFlags( | 791 Code::Flags flags = Code::ComputeFlags( |
| 792 Code::HANDLER, MONOMORPHIC, extra_ic_state, | 792 Code::HANDLER, MONOMORPHIC, extra_ic_state, |
| 793 Code::NORMAL, Code::LOAD_IC); | 793 Code::NORMAL, Code::LOAD_IC); |
| 794 masm->isolate()->stub_cache()->GenerateProbe( | 794 masm->isolate()->stub_cache()->GenerateProbe( |
| 795 masm, flags, x0, x2, x3, x4, x5, x6); | 795 masm, flags, x0, x2, x3, x4, x5, x6); |
| 796 | 796 |
| 797 // Cache miss: Jump to runtime. | 797 // Cache miss: Jump to runtime. |
| 798 GenerateMiss(masm); | 798 GenerateMiss(masm); |
| 799 } | 799 } |
| 800 | 800 |
| (...skipping 1008 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1809 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); | 1809 ASSERT(to_patch->Mask(TestBranchMask) == TBNZ); |
| 1810 // This is JumpIfSmi(smi_reg, branch_imm). | 1810 // This is JumpIfSmi(smi_reg, branch_imm). |
| 1811 patcher.tbz(smi_reg, 0, branch_imm); | 1811 patcher.tbz(smi_reg, 0, branch_imm); |
| 1812 } | 1812 } |
| 1813 } | 1813 } |
| 1814 | 1814 |
| 1815 | 1815 |
| 1816 } } // namespace v8::internal | 1816 } } // namespace v8::internal |
| 1817 | 1817 |
| 1818 #endif // V8_TARGET_ARCH_A64 | 1818 #endif // V8_TARGET_ARCH_A64 |
| OLD | NEW |