Revision: 15466
Author:   [email protected]
Date:     Wed Jul  3 04:57:38 2013
Log:      Fix GDBJIT for Linux after r15460.

[email protected]

Review URL: https://codereview.chromium.org/18363007
http://code.google.com/p/v8/source/detail?r=15466

Modified:
 /branches/bleeding_edge/src/gdb-jit.cc

=======================================
--- /branches/bleeding_edge/src/gdb-jit.cc      Wed Jul  3 01:29:46 2013
+++ /branches/bleeding_edge/src/gdb-jit.cc      Wed Jul  3 04:57:38 2013
@@ -629,7 +629,7 @@
 #if defined(__ELF)
 class ELF BASE_EMBEDDED {
  public:
-  explicit ELF(Zone* zone) : sections_(6, zone) {
+  explicit ELF(Zone* zone) : zone_(zone), sections_(6, zone) {
sections_.Add(new(zone) ELFSection("", ELFSection::TYPE_NULL, 0), zone);
     sections_.Add(new(zone) ELFStringTable(".shstrtab"), zone);
   }
@@ -644,8 +644,8 @@
     return sections_[index];
   }

-  uint32_t AddSection(ELFSection* section, Zone* zone) {
-    sections_.Add(section, zone);
+  uint32_t AddSection(ELFSection* section) {
+    sections_.Add(section, zone_);
     section->set_index(sections_.length() - 1);
     return sections_.length() - 1;
   }
@@ -743,6 +743,7 @@
     }
   }

+  Zone* zone_;
   ZoneList<ELFSection*> sections_;
 };

@@ -1026,8 +1027,8 @@
   ELFStringTable* strtab = new(zone) ELFStringTable(".strtab");

   // Symbol table should be followed by the linked string table.
-  elf->AddSection(symtab, zone);
-  elf->AddSection(strtab, zone);
+  elf->AddSection(symtab);
+  elf->AddSection(strtab);

   symtab->Add(ELFSymbol("V8 Code",
                         0,
@@ -1941,8 +1942,7 @@
           desc->CodeStart(),
           0,
           desc->CodeSize(),
-          ELFSection::FLAG_ALLOC | ELFSection::FLAG_EXEC),
-      &zone);
+          ELFSection::FLAG_ALLOC | ELFSection::FLAG_EXEC));

   CreateSymbolsTable(desc, &zone, &elf, text_section_index);

--
--
v8-dev mailing list
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to