| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 jump_table_.last().is_lazy_deopt != needs_lazy_deopt) { | 754 jump_table_.last().is_lazy_deopt != needs_lazy_deopt) { |
| 755 JumpTableEntry table_entry(entry, !frame_is_built_, needs_lazy_deopt); | 755 JumpTableEntry table_entry(entry, !frame_is_built_, needs_lazy_deopt); |
| 756 jump_table_.Add(table_entry, zone()); | 756 jump_table_.Add(table_entry, zone()); |
| 757 } | 757 } |
| 758 if (cc == no_condition) { | 758 if (cc == no_condition) { |
| 759 __ jmp(&jump_table_.last().label); | 759 __ jmp(&jump_table_.last().label); |
| 760 } else { | 760 } else { |
| 761 __ j(cc, &jump_table_.last().label); | 761 __ j(cc, &jump_table_.last().label); |
| 762 } | 762 } |
| 763 } | 763 } |
| 764 __ bind(&done); | |
| 765 } | 764 } |
| 766 | 765 |
| 767 | 766 |
| 768 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { | 767 void LCodeGen::RegisterDependentCodeForEmbeddedMaps(Handle<Code> code) { |
| 769 ZoneList<Handle<Map> > maps(1, zone()); | 768 ZoneList<Handle<Map> > maps(1, zone()); |
| 770 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); | 769 int mode_mask = RelocInfo::ModeMask(RelocInfo::EMBEDDED_OBJECT); |
| 771 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { | 770 for (RelocIterator it(*code, mode_mask); !it.done(); it.next()) { |
| 772 RelocInfo::Mode mode = it.rinfo()->rmode(); | 771 RelocInfo::Mode mode = it.rinfo()->rmode(); |
| 773 if (mode == RelocInfo::EMBEDDED_OBJECT && | 772 if (mode == RelocInfo::EMBEDDED_OBJECT && |
| 774 it.rinfo()->target_object()->IsMap()) { | 773 it.rinfo()->target_object()->IsMap()) { |
| (...skipping 5011 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5786 FixedArray::kHeaderSize - kPointerSize)); | 5785 FixedArray::kHeaderSize - kPointerSize)); |
| 5787 __ bind(&done); | 5786 __ bind(&done); |
| 5788 } | 5787 } |
| 5789 | 5788 |
| 5790 | 5789 |
| 5791 #undef __ | 5790 #undef __ |
| 5792 | 5791 |
| 5793 } } // namespace v8::internal | 5792 } } // namespace v8::internal |
| 5794 | 5793 |
| 5795 #endif // V8_TARGET_ARCH_X64 | 5794 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |