src/share/vm/adlc/output_h.cpp

changeset 6490
41b780b43b74
parent 6487
15120a36272d
child 6499
ad3b94907eed
     1.1 --- a/src/share/vm/adlc/output_h.cpp	Tue Nov 26 18:38:19 2013 -0800
     1.2 +++ b/src/share/vm/adlc/output_h.cpp	Wed Nov 27 16:16:21 2013 -0800
     1.3 @@ -1615,15 +1615,19 @@
     1.4      Attribute *attr = instr->_attribs;
     1.5      bool avoid_back_to_back = false;
     1.6      while (attr != NULL) {
     1.7 -      if (strcmp (attr->_ident,"ins_cost") &&
     1.8 -          strncmp(attr->_ident,"ins_field_", 10) != 0 &&
     1.9 -          strcmp (attr->_ident,"ins_short_branch")) {
    1.10 -        fprintf(fp,"  virtual int            %s() const { return %s; }\n",
    1.11 -                attr->_ident, attr->_val);
    1.12 +      if (strcmp (attr->_ident, "ins_cost") != 0 &&
    1.13 +          strncmp(attr->_ident, "ins_field_", 10) != 0 &&
    1.14 +          // Must match function in node.hpp: return type bool, no prefix "ins_".
    1.15 +          strcmp (attr->_ident, "ins_is_TrapBasedCheckNode") != 0 &&
    1.16 +          strcmp (attr->_ident, "ins_short_branch") != 0) {
    1.17 +        fprintf(fp, "  virtual int            %s() const { return %s; }\n", attr->_ident, attr->_val);
    1.18        }
    1.19        // Check value for ins_avoid_back_to_back, and if it is true (1), set the flag
    1.20 -      if (!strcmp(attr->_ident,"ins_avoid_back_to_back") && attr->int_val(*this) != 0)
    1.21 +      if (!strcmp(attr->_ident, "ins_avoid_back_to_back") != 0 && attr->int_val(*this) != 0)
    1.22          avoid_back_to_back = true;
    1.23 +      if (strcmp (attr->_ident, "ins_is_TrapBasedCheckNode") == 0)
    1.24 +        fprintf(fp, "  virtual bool           is_TrapBasedCheckNode() const { return %s; }\n", attr->_val);
    1.25 +
    1.26        attr = (Attribute *)attr->_next;
    1.27      }
    1.28  

mercurial