| 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 1781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1792 | 1792 |
| 1793 static void CreateDWARFSections(CodeDescription* desc, | 1793 static void CreateDWARFSections(CodeDescription* desc, |
| 1794 Zone* zone, | 1794 Zone* zone, |
| 1795 DebugObject* obj) { | 1795 DebugObject* obj) { |
| 1796 if (desc->IsLineInfoAvailable()) { | 1796 if (desc->IsLineInfoAvailable()) { |
| 1797 obj->AddSection(new(zone) DebugInfoSection(desc)); | 1797 obj->AddSection(new(zone) DebugInfoSection(desc)); |
| 1798 obj->AddSection(new(zone) DebugAbbrevSection(desc)); | 1798 obj->AddSection(new(zone) DebugAbbrevSection(desc)); |
| 1799 obj->AddSection(new(zone) DebugLineSection(desc)); | 1799 obj->AddSection(new(zone) DebugLineSection(desc)); |
| 1800 } | 1800 } |
| 1801 #if V8_TARGET_ARCH_X64 | 1801 #if V8_TARGET_ARCH_X64 |
| 1802 obj->AddSection(new(zone) UnwindInfoSection(desc), zone); | 1802 obj->AddSection(new(zone) UnwindInfoSection(desc)); |
| 1803 #endif | 1803 #endif |
| 1804 } | 1804 } |
| 1805 | 1805 |
| 1806 | 1806 |
| 1807 // ------------------------------------------------------------------- | 1807 // ------------------------------------------------------------------- |
| 1808 // Binary GDB JIT Interface as described in | 1808 // Binary GDB JIT Interface as described in |
| 1809 // http://sourceware.org/gdb/onlinedocs/gdb/Declarations.html | 1809 // http://sourceware.org/gdb/onlinedocs/gdb/Declarations.html |
| 1810 extern "C" { | 1810 extern "C" { |
| 1811 typedef enum { | 1811 typedef enum { |
| 1812 JIT_NOACTION = 0, | 1812 JIT_NOACTION = 0, |
| (...skipping 357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2170 ScopedLock lock(mutex.Pointer()); | 2170 ScopedLock lock(mutex.Pointer()); |
| 2171 ASSERT(!IsLineInfoTagged(line_info)); | 2171 ASSERT(!IsLineInfoTagged(line_info)); |
| 2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
| 2173 ASSERT(e->value == NULL); | 2173 ASSERT(e->value == NULL); |
| 2174 e->value = TagLineInfo(line_info); | 2174 e->value = TagLineInfo(line_info); |
| 2175 } | 2175 } |
| 2176 | 2176 |
| 2177 | 2177 |
| 2178 } } // namespace v8::internal | 2178 } } // namespace v8::internal |
| 2179 #endif | 2179 #endif |
| OLD | NEW |