src/share/vm/code/pcDesc.hpp

changeset 1366
72088be4b386
parent 435
a61af66fc99e
child 1449
8e954aedbb81
     1.1 --- a/src/share/vm/code/pcDesc.hpp	Wed Aug 19 19:05:18 2009 -0700
     1.2 +++ b/src/share/vm/code/pcDesc.hpp	Thu Aug 20 12:42:57 2009 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright 1997-2005 Sun Microsystems, Inc.  All Rights Reserved.
     1.6 + * Copyright 1997-2009 Sun Microsystems, Inc.  All Rights Reserved.
     1.7   * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     1.8   *
     1.9   * This code is free software; you can redistribute it and/or modify it
    1.10 @@ -34,6 +34,13 @@
    1.11    int _scope_decode_offset; // offset for scope in nmethod
    1.12    int _obj_decode_offset;
    1.13  
    1.14 +  union PcDescFlags {
    1.15 +    int word;
    1.16 +    struct {
    1.17 +      unsigned int reexecute: 1;
    1.18 +    } bits;
    1.19 +  } _flags;
    1.20 +
    1.21   public:
    1.22    int pc_offset() const           { return _pc_offset;   }
    1.23    int scope_decode_offset() const { return _scope_decode_offset; }
    1.24 @@ -53,6 +60,10 @@
    1.25      upper_offset_limit = (unsigned int)-1 >> 1
    1.26    };
    1.27  
    1.28 +  // Flags
    1.29 +  bool     should_reexecute()              const { return _flags.bits.reexecute; }
    1.30 +  void set_should_reexecute(bool z)              { _flags.bits.reexecute = z;    }
    1.31 +
    1.32    // Returns the real pc
    1.33    address real_pc(const nmethod* code) const;
    1.34  

mercurial