Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(206)

Side by Side Diff: src/gdb-jit.cc

Issue 2394213003: Named all zones in the project (Closed)
Patch Set: Merge branch 'master' into zonenames Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/fast-accessor-assembler.cc ('k') | src/handles.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/gdb-jit.h" 5 #include "src/gdb-jit.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/base/platform/platform.h" 10 #include "src/base/platform/platform.h"
(...skipping 1924 matching lines...) Expand 10 before | Expand all | Expand 10 after
1935 } 1935 }
1936 1936
1937 __jit_debug_descriptor.relevant_entry_ = entry; 1937 __jit_debug_descriptor.relevant_entry_ = entry;
1938 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; 1938 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN;
1939 __jit_debug_register_code(); 1939 __jit_debug_register_code();
1940 } 1940 }
1941 1941
1942 1942
1943 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) { 1943 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) {
1944 #ifdef __MACH_O 1944 #ifdef __MACH_O
1945 Zone zone(isolate->allocator()); 1945 Zone zone(isolate->allocator(), ZONE_NAME);
1946 MachO mach_o(&zone); 1946 MachO mach_o(&zone);
1947 Writer w(&mach_o); 1947 Writer w(&mach_o);
1948 1948
1949 mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment, 1949 mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment,
1950 desc->CodeStart(), 1950 desc->CodeStart(),
1951 desc->CodeSize())); 1951 desc->CodeSize()));
1952 1952
1953 CreateDWARFSections(desc, &zone, &mach_o); 1953 CreateDWARFSections(desc, &zone, &mach_o);
1954 1954
1955 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); 1955 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize());
1956 #else 1956 #else
1957 Zone zone(isolate->allocator()); 1957 Zone zone(isolate->allocator(), ZONE_NAME);
1958 ELF elf(&zone); 1958 ELF elf(&zone);
1959 Writer w(&elf); 1959 Writer w(&elf);
1960 1960
1961 int text_section_index = elf.AddSection( 1961 int text_section_index = elf.AddSection(
1962 new(&zone) FullHeaderELFSection( 1962 new(&zone) FullHeaderELFSection(
1963 ".text", 1963 ".text",
1964 ELFSection::TYPE_NOBITS, 1964 ELFSection::TYPE_NOBITS,
1965 kCodeAlignment, 1965 kCodeAlignment,
1966 desc->CodeStart(), 1966 desc->CodeStart(),
1967 0, 1967 0,
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); 2213 LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data);
2214 PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); 2214 PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info);
2215 break; 2215 break;
2216 } 2216 }
2217 } 2217 }
2218 } 2218 }
2219 #endif 2219 #endif
2220 } // namespace GDBJITInterface 2220 } // namespace GDBJITInterface
2221 } // namespace internal 2221 } // namespace internal
2222 } // namespace v8 2222 } // namespace v8
OLDNEW
« no previous file with comments | « src/fast-accessor-assembler.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698