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 1899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1910 entry->next_->prev_ = entry->prev_; | 1910 entry->next_->prev_ = entry->prev_; |
1911 } | 1911 } |
1912 | 1912 |
1913 __jit_debug_descriptor.relevant_entry_ = entry; | 1913 __jit_debug_descriptor.relevant_entry_ = entry; |
1914 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; | 1914 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; |
1915 __jit_debug_register_code(); | 1915 __jit_debug_register_code(); |
1916 } | 1916 } |
1917 | 1917 |
1918 | 1918 |
1919 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Zone* zone) { | 1919 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Zone* zone) { |
1920 ZoneScope zone_scope(zone, DELETE_ON_EXIT); | 1920 ZoneScope zone_scope(zone); |
1921 #ifdef __MACH_O | 1921 #ifdef __MACH_O |
1922 MachO mach_o; | 1922 MachO mach_o; |
1923 Writer w(&mach_o); | 1923 Writer w(&mach_o); |
1924 | 1924 |
1925 mach_o.AddSection(new MachOTextSection(kCodeAlignment, | 1925 mach_o.AddSection(new MachOTextSection(kCodeAlignment, |
1926 desc->CodeStart(), | 1926 desc->CodeStart(), |
1927 desc->CodeSize())); | 1927 desc->CodeSize())); |
1928 | 1928 |
1929 CreateDWARFSections(desc, &mach_o); | 1929 CreateDWARFSections(desc, &mach_o); |
1930 | 1930 |
(...skipping 239 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 |