function _processStackView(context, name, subView) {
      var viewName = void 0;
      for (var orientation = 1; orientation <= 4; orientation *= 2) {
        if (subView.orientations & orientation && subView.stack.orientation !== orientation && !(subView.stack.processedOrientations & orientation)) {
          subView.stack.processedOrientations = subView.stack.processedOrientations | orientation;
          viewName = viewName || {
            name: name,
            type: 'stack'
          };
          for (var i = 0, j = subView.stack.subViews.length; i < j; i++) {
            if (orientation === Orientation.ZINDEX) {
              context.constraints.push({
                view1: viewName,
                attr1: Attribute.ZINDEX,
                relation: Relation.EQU,
                view2: subView.stack.subViews[i],
                attr2: Attribute.ZINDEX
              });
            } else {
              context.constraints.push({
                view1: viewName,
                attr1: orientation === Orientation.VERTICAL ? Attribute.HEIGHT : Attribute.WIDTH,
                relation: Relation.EQU,
                view2: subView.stack.subViews[i],
                attr2: orientation === Orientation.VERTICAL ? Attribute.HEIGHT : Attribute.WIDTH
              });
              context.constraints.push({
                view1: viewName,
                attr1: orientation === Orientation.VERTICAL ? Attribute.TOP : Attribute.LEFT,
                relation: Relation.EQU,
                view2: subView.stack.subViews[i],
                attr2: orientation === Orientation.VERTICAL ? Attribute.TOP : Attribute.LEFT
              });
            }
          }
        }
      }
    }
In case of a stack-view, set constraints for opposite orientations
@private