From 236f47b0a91057a131441f236b7a57b205116d5a Mon Sep 17 00:00:00 2001 From: Josh Matthews Date: Thu, 14 Feb 2013 13:51:53 -0500 Subject: [PATCH] Add proper values for prototype depth and ID to JIT info. --- src/servo/dom/bindings/codegen/CodegenRust.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/servo/dom/bindings/codegen/CodegenRust.py b/src/servo/dom/bindings/codegen/CodegenRust.py index bd553f3e1be..9c0b0433d0d 100644 --- a/src/servo/dom/bindings/codegen/CodegenRust.py +++ b/src/servo/dom/bindings/codegen/CodegenRust.py @@ -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"