| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 652 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 653 // ----------- S t a t e ------------- | 653 // ----------- S t a t e ------------- |
| 654 // -- a2 : name | 654 // -- a2 : name |
| 655 // -- ra : return address | 655 // -- ra : return address |
| 656 // -- a0 : receiver | 656 // -- a0 : receiver |
| 657 // -- sp[0] : receiver | 657 // -- sp[0] : receiver |
| 658 // ----------------------------------- | 658 // ----------------------------------- |
| 659 | 659 |
| 660 // Probe the stub cache. | 660 // Probe the stub cache. |
| 661 Code::Flags flags = Code::ComputeFlags( | 661 Code::Flags flags = Code::ComputeFlags( |
| 662 Code::LOAD_IC, MONOMORPHIC, Code::HANDLER_FRAGMENT); | 662 Code::STUB, MONOMORPHIC, Code::kNoExtraICState, |
| 663 Code::NORMAL, Code::LOAD_IC); |
| 663 Isolate::Current()->stub_cache()->GenerateProbe( | 664 Isolate::Current()->stub_cache()->GenerateProbe( |
| 664 masm, flags, a0, a2, a3, t0, t1, t2); | 665 masm, flags, a0, a2, a3, t0, t1, t2); |
| 665 | 666 |
| 666 // Cache miss: Jump to runtime. | 667 // Cache miss: Jump to runtime. |
| 667 GenerateMiss(masm); | 668 GenerateMiss(masm); |
| 668 } | 669 } |
| 669 | 670 |
| 670 | 671 |
| 671 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 672 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
| 672 // ----------- S t a t e ------------- | 673 // ----------- S t a t e ------------- |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1678 } else { | 1679 } else { |
| 1679 ASSERT(Assembler::IsBne(branch_instr)); | 1680 ASSERT(Assembler::IsBne(branch_instr)); |
| 1680 patcher.ChangeBranchCondition(eq); | 1681 patcher.ChangeBranchCondition(eq); |
| 1681 } | 1682 } |
| 1682 } | 1683 } |
| 1683 | 1684 |
| 1684 | 1685 |
| 1685 } } // namespace v8::internal | 1686 } } // namespace v8::internal |
| 1686 | 1687 |
| 1687 #endif // V8_TARGET_ARCH_MIPS | 1688 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |