| 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 635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 | 646 |
| 647 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 647 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 648 // ----------- S t a t e ------------- | 648 // ----------- S t a t e ------------- |
| 649 // -- a2 : name | 649 // -- a2 : name |
| 650 // -- ra : return address | 650 // -- ra : return address |
| 651 // -- a0 : receiver | 651 // -- a0 : receiver |
| 652 // -- sp[0] : receiver | 652 // -- sp[0] : receiver |
| 653 // ----------------------------------- | 653 // ----------------------------------- |
| 654 | 654 |
| 655 // Probe the stub cache. | 655 // Probe the stub cache. |
| 656 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC); | 656 Code::Flags flags = Code::ComputeFlags( |
| 657 Code::LOAD_IC, MONOMORPHIC, Code::HANDLER_FRAGMENT); |
| 657 Isolate::Current()->stub_cache()->GenerateProbe( | 658 Isolate::Current()->stub_cache()->GenerateProbe( |
| 658 masm, flags, a0, a2, a3, t0, t1, t2); | 659 masm, flags, a0, a2, a3, t0, t1, t2); |
| 659 | 660 |
| 660 // Cache miss: Jump to runtime. | 661 // Cache miss: Jump to runtime. |
| 661 GenerateMiss(masm); | 662 GenerateMiss(masm); |
| 662 } | 663 } |
| 663 | 664 |
| 664 | 665 |
| 665 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 666 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
| 666 // ----------- S t a t e ------------- | 667 // ----------- S t a t e ------------- |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1672 } else { | 1673 } else { |
| 1673 ASSERT(Assembler::IsBne(branch_instr)); | 1674 ASSERT(Assembler::IsBne(branch_instr)); |
| 1674 patcher.ChangeBranchCondition(eq); | 1675 patcher.ChangeBranchCondition(eq); |
| 1675 } | 1676 } |
| 1676 } | 1677 } |
| 1677 | 1678 |
| 1678 | 1679 |
| 1679 } } // namespace v8::internal | 1680 } } // namespace v8::internal |
| 1680 | 1681 |
| 1681 #endif // V8_TARGET_ARCH_MIPS | 1682 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |