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

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

Issue 1847543002: Expose a lower bound of malloc'd memory via heap statistics (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 4 years, 8 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 "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/platform/platform.h" 8 #include "src/base/platform/platform.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 1923 matching lines...) Expand 10 before | Expand all | Expand 10 after
1934 } 1934 }
1935 1935
1936 __jit_debug_descriptor.relevant_entry_ = entry; 1936 __jit_debug_descriptor.relevant_entry_ = entry;
1937 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN; 1937 __jit_debug_descriptor.action_flag_ = JIT_UNREGISTER_FN;
1938 __jit_debug_register_code(); 1938 __jit_debug_register_code();
1939 } 1939 }
1940 1940
1941 1941
1942 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) { 1942 static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) {
1943 #ifdef __MACH_O 1943 #ifdef __MACH_O
1944 Zone zone; 1944 Zone zone(isolate->allocator());
1945 MachO mach_o(&zone); 1945 MachO mach_o(&zone);
1946 Writer w(&mach_o); 1946 Writer w(&mach_o);
1947 1947
1948 mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment, 1948 mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment,
1949 desc->CodeStart(), 1949 desc->CodeStart(),
1950 desc->CodeSize())); 1950 desc->CodeSize()));
1951 1951
1952 CreateDWARFSections(desc, &zone, &mach_o); 1952 CreateDWARFSections(desc, &zone, &mach_o);
1953 1953
1954 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize()); 1954 mach_o.Write(&w, desc->CodeStart(), desc->CodeSize());
1955 #else 1955 #else
1956 Zone zone; 1956 Zone zone(isolate->allocator());
1957 ELF elf(&zone); 1957 ELF elf(&zone);
1958 Writer w(&elf); 1958 Writer w(&elf);
1959 1959
1960 int text_section_index = elf.AddSection( 1960 int text_section_index = elf.AddSection(
1961 new(&zone) FullHeaderELFSection( 1961 new(&zone) FullHeaderELFSection(
1962 ".text", 1962 ".text",
1963 ELFSection::TYPE_NOBITS, 1963 ELFSection::TYPE_NOBITS,
1964 kCodeAlignment, 1964 kCodeAlignment,
1965 desc->CodeStart(), 1965 desc->CodeStart(),
1966 0, 1966 0,
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data); 2210 LineInfo* line_info = reinterpret_cast<LineInfo*>(event->user_data);
2211 PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info); 2211 PutLineInfo(reinterpret_cast<Address>(event->code_start), line_info);
2212 break; 2212 break;
2213 } 2213 }
2214 } 2214 }
2215 } 2215 }
2216 #endif 2216 #endif
2217 } // namespace GDBJITInterface 2217 } // namespace GDBJITInterface
2218 } // namespace internal 2218 } // namespace internal
2219 } // namespace v8 2219 } // 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