src/share/vm/opto/type.cpp

changeset 1040
98cb887364d3
parent 992
465813e0303a
child 1059
337400e7a5dd
     1.1 --- a/src/share/vm/opto/type.cpp	Fri Feb 27 08:34:19 2009 -0800
     1.2 +++ b/src/share/vm/opto/type.cpp	Fri Feb 27 13:27:09 2009 -0800
     1.3 @@ -2455,7 +2455,7 @@
     1.4      // code and dereferenced at the time the nmethod is made.  Until that time,
     1.5      // it is not reasonable to do arithmetic with the addresses of oops (we don't
     1.6      // have access to the addresses!).  This does not seem to currently happen,
     1.7 -    // but this assertion here is to help prevent its occurrance.
     1.8 +    // but this assertion here is to help prevent its occurence.
     1.9      tty->print_cr("Found oop constant with non-zero offset");
    1.10      ShouldNotReachHere();
    1.11    }
    1.12 @@ -2761,7 +2761,7 @@
    1.13        // LCA is object_klass, but if we subclass from the top we can do better
    1.14        if( above_centerline(_ptr) ) { // if( _ptr == TopPTR || _ptr == AnyNull )
    1.15          // If 'this' (InstPtr) is above the centerline and it is Object class
    1.16 -        // then we can subclass in the Java class heirarchy.
    1.17 +        // then we can subclass in the Java class hierarchy.
    1.18          if (klass()->equals(ciEnv::current()->Object_klass())) {
    1.19            // that is, tp's array type is a subtype of my klass
    1.20            return TypeAryPtr::make(ptr, tp->ary(), tp->klass(), tp->klass_is_exact(), offset, instance_id);
    1.21 @@ -3022,7 +3022,7 @@
    1.22  
    1.23  //------------------------------xdual------------------------------------------
    1.24  // Dual: do NOT dual on klasses.  This means I do NOT understand the Java
    1.25 -// inheritence mechanism.
    1.26 +// inheritance mechanism.
    1.27  const Type *TypeInstPtr::xdual() const {
    1.28    return new TypeInstPtr( dual_ptr(), klass(), klass_is_exact(), const_oop(), dual_offset(), dual_instance_id()  );
    1.29  }
    1.30 @@ -3176,7 +3176,7 @@
    1.31    bool chg = false;
    1.32    if (lo < min_lo) { lo = min_lo; chg = true; }
    1.33    if (hi > max_hi) { hi = max_hi; chg = true; }
    1.34 -  // Negative length arrays will produce weird intermediate dead fath-path code
    1.35 +  // Negative length arrays will produce weird intermediate dead fast-path code
    1.36    if (lo > hi)
    1.37      return TypeInt::ZERO;
    1.38    if (!chg)
    1.39 @@ -3358,7 +3358,7 @@
    1.40        // LCA is object_klass, but if we subclass from the top we can do better
    1.41        if (above_centerline(tp->ptr())) {
    1.42          // If 'tp'  is above the centerline and it is Object class
    1.43 -        // then we can subclass in the Java class heirarchy.
    1.44 +        // then we can subclass in the Java class hierarchy.
    1.45          if( tp->klass()->equals(ciEnv::current()->Object_klass()) ) {
    1.46            // that is, my array type is a subtype of 'tp' klass
    1.47            return make( ptr, _ary, _klass, _klass_is_exact, offset, instance_id );

mercurial