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 Label miss; | 639 Label miss; |
640 __ JumpIfSmi(a2, &miss); | 640 __ JumpIfSmi(a2, &miss); |
641 __ IsObjectNameType(a2, a0, &miss); | 641 __ IsObjectNameType(a2, a0, &miss); |
642 | 642 |
643 CallICBase::GenerateNormal(masm, argc); | 643 CallICBase::GenerateNormal(masm, argc); |
644 __ bind(&miss); | 644 __ bind(&miss); |
645 GenerateMiss(masm, argc); | 645 GenerateMiss(masm, argc); |
646 } | 646 } |
647 | 647 |
648 | 648 |
649 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 649 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { |
650 // ----------- S t a t e ------------- | 650 // ----------- S t a t e ------------- |
651 // -- a2 : name | 651 // -- a2 : name |
652 // -- ra : return address | 652 // -- ra : return address |
653 // -- a0 : receiver | 653 // -- a0 : receiver |
654 // ----------------------------------- | 654 // ----------------------------------- |
655 | 655 |
656 // Probe the stub cache. | 656 // Probe the stub cache. |
| 657 ExtraICState extra_ic_state = IC::ComputeExtraICState(mode); |
657 Code::Flags flags = Code::ComputeFlags( | 658 Code::Flags flags = Code::ComputeFlags( |
658 Code::HANDLER, MONOMORPHIC, kNoExtraICState, | 659 Code::HANDLER, MONOMORPHIC, extra_ic_state, |
659 Code::NORMAL, Code::LOAD_IC); | 660 Code::NORMAL, Code::LOAD_IC); |
660 masm->isolate()->stub_cache()->GenerateProbe( | 661 masm->isolate()->stub_cache()->GenerateProbe( |
661 masm, flags, a0, a2, a3, t0, t1, t2); | 662 masm, flags, a0, a2, a3, t0, t1, t2); |
662 | 663 |
663 // Cache miss: Jump to runtime. | 664 // Cache miss: Jump to runtime. |
664 GenerateMiss(masm); | 665 GenerateMiss(masm); |
665 } | 666 } |
666 | 667 |
667 | 668 |
668 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 669 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
(...skipping 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1685 } else { | 1686 } else { |
1686 ASSERT(Assembler::IsBne(branch_instr)); | 1687 ASSERT(Assembler::IsBne(branch_instr)); |
1687 patcher.ChangeBranchCondition(eq); | 1688 patcher.ChangeBranchCondition(eq); |
1688 } | 1689 } |
1689 } | 1690 } |
1690 | 1691 |
1691 | 1692 |
1692 } } // namespace v8::internal | 1693 } } // namespace v8::internal |
1693 | 1694 |
1694 #endif // V8_TARGET_ARCH_MIPS | 1695 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |