Duplicate :
|
|
Relates :
|
CodeGenerator has some type-based optimizations that only work for expressions of object types (namely, nullCheck and undefinedCheck). These optimizations kick in also if their operands get deoptimized to Object type even if they had a narrower type earlier. Transferring the control from a method to its continuation (rest-of) version is sensitive to having the same shape of stack at the same call sites as the method being deoptimized; these two optimizations violate this invariant though, and need to be disabled when they would affect the shape of the stack.