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 "" return ""
def defineJitInfo(self, infoName, opName, infallible): def defineJitInfo(self, infoName, opName, infallible):
protoID = 0 # "prototypes::id::%s" % self.descriptor.name protoID = "prototypes::id::%s as uint" % self.descriptor.name
depth = 0 # "PrototypeTraits<%s>::Depth" % protoID depth = self.descriptor.interface.inheritanceDepth()
failstr = "true" if infallible else "false" failstr = "true" if infallible else "false"
return ("\n" return ("\n"
"const %s: JSJitInfo = JSJitInfo {\n" "const %s: JSJitInfo = JSJitInfo {\n"