Bug 745758 - pack ipdl-generated classes better; r=cjones
authorNathan Froyd <froydnj@mozilla.com>
Mon, 16 Apr 2012 13:30:07 -0400
changeset 91861 2d345cf4616b132e576d3e82cbe8b5a6b537d6c0
parent 91860 193999908be8160fea8600ec8cbd51d4020d6c19
child 91862 ef55c163a23a0fb7dc361791a53b6149d69f3ca2
push id690
push usertim.taubert@gmx.de
push dateThu, 19 Apr 2012 08:49:11 +0000
treeherderfx-team@a9b543de6b67 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs745758
milestone14.0a1
Bug 745758 - pack ipdl-generated classes better; r=cjones
ipc/ipdl/ipdl/lower.py
--- a/ipc/ipdl/ipdl/lower.py
+++ b/ipc/ipdl/ipdl/lower.py
@@ -3271,19 +3271,19 @@ class _GenerateProtocolActorCode(ipdl.as
                 StmtDecl(Decl(Type('IDMap', T=Type('ChannelListener')),
                               p.actorMapVar().name)),
                 StmtDecl(Decl(_actorIdType(), p.lastActorIdVar().name)),
                 StmtDecl(Decl(Type('ProcessHandle'),
                               p.otherProcessVar().name))
             ])
         elif ptype.isManaged():
             self.cls.addstmts([
-                StmtDecl(Decl(_actorIdType(), p.idVar().name)),
                 StmtDecl(Decl(p.managerInterfaceType(ptr=1),
-                              p.managerVar().name))
+                              p.managerVar().name)),
+                StmtDecl(Decl(_actorIdType(), p.idVar().name))
             ])
         if p.decl.type.isToplevel():
             self.cls.addstmts([
                 StmtDecl(Decl(p.shmemMapType(), p.shmemMapVar().name)),
                 StmtDecl(Decl(_shmemIdType(), p.lastShmemIdVar().name))
             ])
 
         self.cls.addstmt(StmtDecl(Decl(Type('State'), p.stateVar().name)))