Bug 1316755, part 2 - Eliminate spurious usage of Actor in lower.py.
Actor is used in the process checking code, which will get deleted
later.
MozReview-Commit-ID: 9zfD4MuscVw
--- a/ipc/ipdl/ipdl/lower.py
+++ b/ipc/ipdl/ipdl/lower.py
@@ -4,17 +4,17 @@
import os, re, sys
from copy import deepcopy
from collections import OrderedDict
import ipdl.ast
import ipdl.builtin
from ipdl.cxx.ast import *
-from ipdl.type import Actor, ActorType, ProcessGraph, TypeVisitor, builtinHeaderIncludes
+from ipdl.type import ActorType, ProcessGraph, TypeVisitor, builtinHeaderIncludes
##-----------------------------------------------------------------------------
## "Public" interface to lowering
##
class LowerToCxx:
def lower(self, tu):
'''returns |[ header: File ], [ cpp : File ]| representing the
lowered form of |tu|'''
@@ -569,20 +569,20 @@ def _cxxConstPtrToType(ipdltype, side):
t.ptr = 0
t.ptrconstptr = 1
return t
t.const = 1
t.ptr = 1
return t
def _allocMethod(ptype, side):
- return ExprVar('Alloc'+ str(Actor(ptype, side)))
+ return ExprVar('Alloc' + ptype.name() + side.title())
def _deallocMethod(ptype, side):
- return ExprVar('Dealloc'+ str(Actor(ptype, side)))
+ return ExprVar('Dealloc' + ptype.name() + side.title())
##
## A _HybridDecl straddles IPDL and C++ decls. It knows which C++
## types correspond to which IPDL types, and it also knows how
## serialize and deserialize "special" IPDL C++ types.
##
class _HybridDecl:
"""A hybrid decl stores both an IPDL type and all the C++ type