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

Unified Diff: src/gdb-jit.cc

Issue 13083002: GDBJIT: Make GDBJIT interface compile for OSX again. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gdb-jit.cc
===================================================================
--- src/gdb-jit.cc (revision 14512)
+++ src/gdb-jit.cc (working copy)
@@ -500,10 +500,10 @@
#if defined(__MACH_O)
class MachO BASE_EMBEDDED {
public:
- MachO() : sections_(6) { }
+ explicit MachO(Zone * zone) : sections_(6, zone) { }
- uint32_t AddSection(MachOSection* section) {
- sections_.Add(section);
+ uint32_t AddSection(MachOSection* section, Zone* zone) {
+ sections_.Add(section, zone);
return sections_.length() - 1;
}
@@ -1919,14 +1919,15 @@
static JITCodeEntry* CreateELFObject(CodeDescription* desc, Zone* zone) {
ZoneScope zone_scope(zone, DELETE_ON_EXIT);
#ifdef __MACH_O
- MachO mach_o;
+ MachO mach_o(zone);
Writer w(&mach_o);
- mach_o.AddSection(new MachOTextSection(kCodeAlignment,
- desc->CodeStart(),
- desc->CodeSize()));
+ mach_o.AddSection(new(zone) MachOTextSection(kCodeAlignment,
+ desc->CodeStart(),
+ desc->CodeSize()),
+ zone);
- CreateDWARFSections(desc, &mach_o);
+ CreateDWARFSections(desc, zone, &mach_o);
mach_o.Write(&w, desc->CodeStart(), desc->CodeSize());
#else
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698