| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 621 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 632 PatchInlinedLoad(address, Heap::null_value()); | 632 PatchInlinedLoad(address, Heap::null_value()); |
| 633 } | 633 } |
| 634 | 634 |
| 635 | 635 |
| 636 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) { | 636 bool KeyedLoadIC::PatchInlinedLoad(Address address, Object* map) { |
| 637 Address inline_end_address; | 637 Address inline_end_address; |
| 638 if (!IsInlinedICSite(address, &inline_end_address)) return false; | 638 if (!IsInlinedICSite(address, &inline_end_address)) return false; |
| 639 | 639 |
| 640 // Patch the map check. | 640 // Patch the map check. |
| 641 Address ldr_map_instr_address = | 641 Address ldr_map_instr_address = |
| 642 inline_end_address - 19 * Assembler::kInstrSize; | 642 inline_end_address - 18 * Assembler::kInstrSize; |
| 643 Assembler::set_target_address_at(ldr_map_instr_address, | 643 Assembler::set_target_address_at(ldr_map_instr_address, |
| 644 reinterpret_cast<Address>(map)); | 644 reinterpret_cast<Address>(map)); |
| 645 return true; | 645 return true; |
| 646 } | 646 } |
| 647 | 647 |
| 648 | 648 |
| 649 void KeyedStoreIC::ClearInlinedVersion(Address address) {} | 649 void KeyedStoreIC::ClearInlinedVersion(Address address) {} |
| 650 | 650 |
| 651 | 651 |
| 652 void KeyedStoreIC::RestoreInlinedVersion(Address address) {} | 652 void KeyedStoreIC::RestoreInlinedVersion(Address address) {} |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1758 __ bind(&miss); | 1758 __ bind(&miss); |
| 1759 | 1759 |
| 1760 GenerateMiss(masm); | 1760 GenerateMiss(masm); |
| 1761 } | 1761 } |
| 1762 | 1762 |
| 1763 | 1763 |
| 1764 #undef __ | 1764 #undef __ |
| 1765 | 1765 |
| 1766 | 1766 |
| 1767 } } // namespace v8::internal | 1767 } } // namespace v8::internal |
| OLD | NEW |