Reviewers: machenbach,

Description:
Fix GDBJIT compilation on Mac after r15467.

R=machenb...@chromium.org

Please review this at https://codereview.chromium.org/18259007/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/gdb-jit.cc


Index: src/gdb-jit.cc
diff --git a/src/gdb-jit.cc b/src/gdb-jit.cc
index 0140bbb9551bf20a85ed88ee1ab083fc42f8e20c..921f2a35b4e743f7660f777edc179496bbbeb752 100644
--- a/src/gdb-jit.cc
+++ b/src/gdb-jit.cc
@@ -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


--
--
v8-dev mailing list
v8-dev@googlegroups.com
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to v8-dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to