| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 622 | 622 |
| 623 | 623 |
| 624 ZoneList<MachOSection*> sections_; | 624 ZoneList<MachOSection*> sections_; |
| 625 }; | 625 }; |
| 626 #endif // defined(__MACH_O) | 626 #endif // defined(__MACH_O) |
| 627 | 627 |
| 628 | 628 |
| 629 #if defined(__ELF) | 629 #if defined(__ELF) |
| 630 class ELF BASE_EMBEDDED { | 630 class ELF BASE_EMBEDDED { |
| 631 public: | 631 public: |
| 632 ELF(Zone* zone) : sections_(6, zone) { | 632 explicit ELF(Zone* zone) : sections_(6, zone) { |
| 633 sections_.Add(new(zone) ELFSection("", ELFSection::TYPE_NULL, 0), zone); | 633 sections_.Add(new(zone) ELFSection("", ELFSection::TYPE_NULL, 0), zone); |
| 634 sections_.Add(new(zone) ELFStringTable(".shstrtab"), zone); | 634 sections_.Add(new(zone) ELFStringTable(".shstrtab"), zone); |
| 635 } | 635 } |
| 636 | 636 |
| 637 void Write(Writer* w) { | 637 void Write(Writer* w) { |
| 638 WriteHeader(w); | 638 WriteHeader(w); |
| 639 WriteSectionTable(w); | 639 WriteSectionTable(w); |
| 640 WriteSections(w); | 640 WriteSections(w); |
| 641 } | 641 } |
| 642 | 642 |
| (...skipping 1526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2169 ScopedLock lock(mutex.Pointer()); | 2169 ScopedLock lock(mutex.Pointer()); |
| 2170 ASSERT(!IsLineInfoTagged(line_info)); | 2170 ASSERT(!IsLineInfoTagged(line_info)); |
| 2171 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2171 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
| 2172 ASSERT(e->value == NULL); | 2172 ASSERT(e->value == NULL); |
| 2173 e->value = TagLineInfo(line_info); | 2173 e->value = TagLineInfo(line_info); |
| 2174 } | 2174 } |
| 2175 | 2175 |
| 2176 | 2176 |
| 2177 } } // namespace v8::internal | 2177 } } // namespace v8::internal |
| 2178 #endif | 2178 #endif |
| OLD | NEW |