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 1901 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1912 } | 1912 } |
1913 | 1913 |
1914 __jit_debug_descriptor.relevant_entry_ = entry; | 1914 __jit_debug_descriptor.relevant_entry_ = entry; |
1915 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; | 1915 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; |
1916 __jit_debug_register_code(); | 1916 __jit_debug_register_code(); |
1917 } | 1917 } |
1918 | 1918 |
1919 | 1919 |
1920 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) { | 1920 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) { |
1921 #ifdef __MACH_O | 1921 #ifdef __MACH_O |
1922 MachO mach_o(zone); | 1922 Zone zone(isolate); |
| 1923 MachO mach_o(&zone); |
1923 Writer w(&mach_o); | 1924 Writer w(&mach_o); |
1924 | 1925 |
1925 mach_o.AddSection(new(zone) MachOTextSection(kCodeAlignment, | 1926 mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment, |
1926 desc->CodeStart(), | 1927 desc->CodeStart(), |
1927 desc->CodeSize())); | 1928 desc->CodeSize())); |
1928 | 1929 |
1929 CreateDWARFSections(desc, zone, &mach_o); | 1930 CreateDWARFSections(desc, &zone, &mach_o); |
1930 | 1931 |
1931 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); | 1932 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); |
1932 #else | 1933 #else |
1933 Zone zone(isolate); | 1934 Zone zone(isolate); |
1934 ELF elf(&zone); | 1935 ELF elf(&zone); |
1935 Writer w(&elf); | 1936 Writer w(&elf); |
1936 | 1937 |
1937 int text_section_index = elf.AddSection( | 1938 int text_section_index = elf.AddSection( |
1938 new(&zone) FullHeaderELFSection( | 1939 new(&zone) FullHeaderELFSection( |
1939 ".text", | 1940 ".text", |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2170 ScopedLock lock(mutex.Pointer()); | 2171 ScopedLock lock(mutex.Pointer()); |
2171 ASSERT(!IsLineInfoTagged(line_info)); | 2172 ASSERT(!IsLineInfoTagged(line_info)); |
2172 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); | 2173 HashMap::Entry* e = GetEntries()->Lookup(code, HashForCodeObject(code), true); |
2173 ASSERT(e->value == NULL); | 2174 ASSERT(e->value == NULL); |
2174 e->value = TagLineInfo(line_info); | 2175 e->value = TagLineInfo(line_info); |
2175 } | 2176 } |
2176 | 2177 |
2177 | 2178 |
2178 } } // namespace v8::internal | 2179 } } // namespace v8::internal |
2179 #endif | 2180 #endif |
OLD | NEW |