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 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 Label miss; | 640 Label miss; |
641 __ JumpIfSmi(r2, &miss); | 641 __ JumpIfSmi(r2, &miss); |
642 __ IsObjectNameType(r2, r0, &miss); | 642 __ IsObjectNameType(r2, r0, &miss); |
643 | 643 |
644 CallICBase::GenerateNormal(masm, argc); | 644 CallICBase::GenerateNormal(masm, argc); |
645 __ bind(&miss); | 645 __ bind(&miss); |
646 GenerateMiss(masm, argc); | 646 GenerateMiss(masm, argc); |
647 } | 647 } |
648 | 648 |
649 | 649 |
650 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 650 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { |
651 // ----------- S t a t e ------------- | 651 // ----------- S t a t e ------------- |
652 // -- r2 : name | 652 // -- r2 : name |
653 // -- lr : return address | 653 // -- lr : return address |
654 // -- r0 : receiver | 654 // -- r0 : receiver |
655 // ----------------------------------- | 655 // ----------------------------------- |
656 | 656 |
657 // Probe the stub cache. | 657 // Probe the stub cache. |
| 658 ExtraICState extra_ic_state = IC::ComputeExtraICState(mode); |
658 Code::Flags flags = Code::ComputeFlags( | 659 Code::Flags flags = Code::ComputeFlags( |
659 Code::HANDLER, MONOMORPHIC, kNoExtraICState, | 660 Code::HANDLER, MONOMORPHIC, extra_ic_state, |
660 Code::NORMAL, Code::LOAD_IC); | 661 Code::NORMAL, Code::LOAD_IC); |
661 masm->isolate()->stub_cache()->GenerateProbe( | 662 masm->isolate()->stub_cache()->GenerateProbe( |
662 masm, flags, r0, r2, r3, r4, r5, r6); | 663 masm, flags, r0, r2, r3, r4, r5, r6); |
663 | 664 |
664 // Cache miss: Jump to runtime. | 665 // Cache miss: Jump to runtime. |
665 GenerateMiss(masm); | 666 GenerateMiss(masm); |
666 } | 667 } |
667 | 668 |
668 | 669 |
669 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 670 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
(...skipping 1007 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1677 } else { | 1678 } else { |
1678 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1679 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
1679 patcher.EmitCondition(eq); | 1680 patcher.EmitCondition(eq); |
1680 } | 1681 } |
1681 } | 1682 } |
1682 | 1683 |
1683 | 1684 |
1684 } } // namespace v8::internal | 1685 } } // namespace v8::internal |
1685 | 1686 |
1686 #endif // V8_TARGET_ARCH_ARM | 1687 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |