| 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 | 640 |
| 641 | 641 |
| 642 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { | 642 void LoadIC::GenerateMegamorphic(MacroAssembler* masm, ContextualMode mode) { |
| 643 // ----------- S t a t e ------------- | 643 // ----------- S t a t e ------------- |
| 644 // -- r2 : name | 644 // -- r2 : name |
| 645 // -- lr : return address | 645 // -- lr : return address |
| 646 // -- r0 : receiver | 646 // -- r0 : receiver |
| 647 // ----------------------------------- | 647 // ----------------------------------- |
| 648 | 648 |
| 649 // Probe the stub cache. | 649 // Probe the stub cache. |
| 650 ExtraICState extra_ic_state = IC::ComputeExtraICState(mode); | 650 ExtraICState extra_ic_state = LoadIC::ComputeExtraICState(mode); |
| 651 Code::Flags flags = Code::ComputeFlags( | 651 Code::Flags flags = Code::ComputeFlags( |
| 652 Code::HANDLER, MONOMORPHIC, extra_ic_state, | 652 Code::HANDLER, MONOMORPHIC, extra_ic_state, |
| 653 Code::NORMAL, Code::LOAD_IC); | 653 Code::NORMAL, Code::LOAD_IC); |
| 654 masm->isolate()->stub_cache()->GenerateProbe( | 654 masm->isolate()->stub_cache()->GenerateProbe( |
| 655 masm, flags, r0, r2, r3, r4, r5, r6); | 655 masm, flags, r0, r2, r3, r4, r5, r6); |
| 656 | 656 |
| 657 // Cache miss: Jump to runtime. | 657 // Cache miss: Jump to runtime. |
| 658 GenerateMiss(masm); | 658 GenerateMiss(masm); |
| 659 } | 659 } |
| 660 | 660 |
| (...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1670 } else { | 1670 } else { |
| 1671 ASSERT(Assembler::GetCondition(branch_instr) == ne); | 1671 ASSERT(Assembler::GetCondition(branch_instr) == ne); |
| 1672 patcher.EmitCondition(eq); | 1672 patcher.EmitCondition(eq); |
| 1673 } | 1673 } |
| 1674 } | 1674 } |
| 1675 | 1675 |
| 1676 | 1676 |
| 1677 } } // namespace v8::internal | 1677 } } // namespace v8::internal |
| 1678 | 1678 |
| 1679 #endif // V8_TARGET_ARCH_ARM | 1679 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |