Fix GDBJIT compilation on Mac after r15467.
R=machenbach@chromium.org Review URL: https://codereview.chromium.org/18259007 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@15474 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
0d2fed8f26
commit
0a6b0645cf
@ -1919,14 +1919,15 @@ static void UnregisterCodeEntry(JITCodeEntry* entry) {
|
||||
|
||||
static JITCodeEntry* CreateELFObject(CodeDescription* desc, Isolate* isolate) {
|
||||
#ifdef __MACH_O
|
||||
MachO mach_o(zone);
|
||||
Zone zone(isolate);
|
||||
MachO mach_o(&zone);
|
||||
Writer w(&mach_o);
|
||||
|
||||
mach_o.AddSection(new(zone) MachOTextSection(kCodeAlignment,
|
||||
desc->CodeStart(),
|
||||
desc->CodeSize()));
|
||||
mach_o.AddSection(new(&zone) MachOTextSection(kCodeAlignment,
|
||||
desc->CodeStart(),
|
||||
desc->CodeSize()));
|
||||
|
||||
CreateDWARFSections(desc, zone, &mach_o);
|
||||
CreateDWARFSections(desc, &zone, &mach_o);
|
||||
|
||||
mach_o.Write(&w, desc->CodeStart(), desc->CodeSize());
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user