src/share/vm/opto/machnode.hpp

changeset 3882
8c92982cbbc4
parent 3316
f03a3c8bd5e5
child 4037
da91efe96a93
     1.1 --- a/src/share/vm/opto/machnode.hpp	Thu Jun 14 14:59:52 2012 -0700
     1.2 +++ b/src/share/vm/opto/machnode.hpp	Fri Jun 15 01:25:19 2012 -0700
     1.3 @@ -1,5 +1,5 @@
     1.4  /*
     1.5 - * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved.
     1.6 + * Copyright (c) 1997, 2012, Oracle and/or its affiliates. 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 @@ -319,6 +319,7 @@
    1.11  class MachTypeNode : public MachNode {
    1.12    virtual uint size_of() const { return sizeof(*this); } // Size is bigger
    1.13  public:
    1.14 +  MachTypeNode( ) {}
    1.15    const Type *_bottom_type;
    1.16  
    1.17    virtual const class Type *bottom_type() const { return _bottom_type; }
    1.18 @@ -370,12 +371,12 @@
    1.19  
    1.20  //------------------------------MachConstantNode-------------------------------
    1.21  // Machine node that holds a constant which is stored in the constant table.
    1.22 -class MachConstantNode : public MachNode {
    1.23 +class MachConstantNode : public MachTypeNode {
    1.24  protected:
    1.25    Compile::Constant _constant;  // This node's constant.
    1.26  
    1.27  public:
    1.28 -  MachConstantNode() : MachNode() {
    1.29 +  MachConstantNode() : MachTypeNode() {
    1.30      init_class_id(Class_MachConstant);
    1.31    }
    1.32  

mercurial