Add proper values for prototype depth and ID to JIT info.

This commit is contained in:
Josh Matthews 2013-02-14 13:51:53 -05:00
parent 96d9c6402d
commit 236f47b0a9

View file

@ -1738,8 +1738,8 @@ class CGMemberJITInfo(CGThing):
return ""
def defineJitInfo(self, infoName, opName, infallible):
protoID = 0 # "prototypes::id::%s" % self.descriptor.name
depth = 0 # "PrototypeTraits<%s>::Depth" % protoID
protoID = "prototypes::id::%s as uint" % self.descriptor.name
depth = self.descriptor.interface.inheritanceDepth()
failstr = "true" if infallible else "false"
return ("\n"
"const %s: JSJitInfo = JSJitInfo {\n"