Skip to content

Instantly share code, notes, and snippets.

@dati91 dati91/slot_index.diff Secret

Created Apr 6, 2016
Embed
What would you like to do?
diff --git a/components/script/dom/bindings/codegen/CodegenRust.py b/components/script/dom/bindings/codegen/CodegenRust.py
index 51c2976..9655951 100644
--- a/components/script/dom/bindings/codegen/CodegenRust.py
+++ b/components/script/dom/bindings/codegen/CodegenRust.py
@@ -3241,10 +3241,11 @@ class CGMemberJITInfo(CGThing):
if self.member.slotIndex is not None:
assert isAlwaysInSlot or self.member.getExtendedAttribute("Cached")
isLazilyCachedInSlot = not isAlwaysInSlot
- slotIndex = memberReservedSlot(self.member) # noqa:FIXME: memberReservedSlot is not defined
+ #slotIndex = memberReservedSlot(self.member) # noqa:FIXME: memberReservedSlot is not defined
# We'll statically assert that this is not too big in
# CGUpdateMemberSlotsMethod, in the case when
# isAlwaysInSlot is true.
+ slotIndex = "0"
else:
isLazilyCachedInSlot = False
slotIndex = "0"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.