Bug 745758 - pack ipdl-generated classes better; r=cjones
authorNathan Froyd <froydnj@mozilla.com>
Mon, 16 Apr 2012 13:30:07 -0400
changeset 91857 2d345cf4616b132e576d3e82cbe8b5a6b537d6c0
parent 91856 193999908be8160fea8600ec8cbd51d4020d6c19
child 91858 ef55c163a23a0fb7dc361791a53b6149d69f3ca2
push id22480
push useremorley@mozilla.com
push dateWed, 18 Apr 2012 00:48:48 +0000
treeherdermozilla-central@93dfd98900ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerscjones
bugs745758
milestone14.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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)))