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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 | 639 |
640 | 640 |
641 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { | 641 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { |
642 // ----------- S t a t e ------------- | 642 // ----------- S t a t e ------------- |
643 // -- a2 : name | 643 // -- a2 : name |
644 // -- ra : return address | 644 // -- ra : return address |
645 // -- a0 : receiver | 645 // -- a0 : receiver |
646 // ----------------------------------- | 646 // ----------------------------------- |
647 | 647 |
648 // Probe the stub cache. | 648 // Probe the stub cache. |
649 ExtraICState extra_ic_state = IC::ComputeExtraICState(mode); | 649 ExtraICState extra_ic_state = LoadIC::ComputeExtraICState(mode); |
650 Code::Flags flags = Code::ComputeFlags( | 650 Code::Flags flags = Code::ComputeFlags( |
651 Code::HANDLER, MONOMORPHIC, extra_ic_state, | 651 Code::HANDLER, MONOMORPHIC, extra_ic_state, |
652 Code::NORMAL, Code::LOAD_IC); | 652 Code::NORMAL, Code::LOAD_IC); |
653 masm->isolate()->stub_cache()->GenerateProbe( | 653 masm->isolate()->stub_cache()->GenerateProbe( |
654 masm, flags, a0, a2, a3, t0, t1, t2); | 654 masm, flags, a0, a2, a3, t0, t1, t2); |
655 | 655 |
656 // Cache miss: Jump to runtime. | 656 // Cache miss: Jump to runtime. |
657 GenerateMiss(masm); | 657 GenerateMiss(masm); |
658 } | 658 } |
659 | 659 |
(...skipping 1018 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 } else { | 1678 } else { |
1679 ASSERT(Assembler::IsBne(branch_instr)); | 1679 ASSERT(Assembler::IsBne(branch_instr)); |
1680 patcher.ChangeBranchCondition(eq); | 1680 patcher.ChangeBranchCondition(eq); |
1681 } | 1681 } |
1682 } | 1682 } |
1683 | 1683 |
1684 | 1684 |
1685 } } // namespace v8::internal | 1685 } } // namespace v8::internal |
1686 | 1686 |
1687 #endif // V8_TARGET_ARCH_MIPS | 1687 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |