| 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 638 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 649 | 649 |
| 650 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 650 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
| 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 // -- sp[0] : receiver | 655 // -- sp[0] : receiver |
| 656 // ----------------------------------- | 656 // ----------------------------------- |
| 657 | 657 |
| 658 // Probe the stub cache. | 658 // Probe the stub cache. |
| 659 Code::Flags flags = | 659 Code::Flags flags = Code::ComputeFlags( |
| 660 Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC); | 660 Code::LOAD_IC, MONOMORPHIC, Code::HANDLER_FRAGMENT); |
| 661 Isolate::Current()->stub_cache()->GenerateProbe( | 661 Isolate::Current()->stub_cache()->GenerateProbe( |
| 662 masm, flags, r0, r2, r3, r4, r5, r6); | 662 masm, flags, r0, r2, r3, r4, r5, r6); |
| 663 | 663 |
| 664 // Cache miss: Jump to runtime. | 664 // Cache miss: Jump to runtime. |
| 665 GenerateMiss(masm); | 665 GenerateMiss(masm); |
| 666 } | 666 } |
| 667 | 667 |
| 668 | 668 |
| 669 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 669 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
| 670 // ----------- S t a t e ------------- | 670 // ----------- S t a t e ------------- |
| (...skipping 1005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 } else { | 1676 } else { |
| 1677 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1677 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
| 1678 patcher.EmitCondition(eq); | 1678 patcher.EmitCondition(eq); |
| 1679 } | 1679 } |
| 1680 } | 1680 } |
| 1681 | 1681 |
| 1682 | 1682 |
| 1683 } } // namespace v8::internal | 1683 } } // namespace v8::internal |
| 1684 | 1684 |
| 1685 #endif // V8_TARGET_ARCH_ARM | 1685 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |