/*
* Copyright 2008, 2009 Red Hat, Inc.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*
*/
#include "precompiled.hpp"
#include "ci/ciType.hpp"
#include "shark/llvmHeaders.hpp"
#include "shark/llvmValue.hpp"
#include "shark/sharkBuilder.hpp"
#include "shark/sharkValue.hpp"
using namespace llvm;
// Cloning
}
}
}
// Casting
return false;
}
return true;
}
}
return this;
}
// Comparison
}
}
// Type access
}
return _type;
}
return type()->basic_type();
}
return T_ADDRESS;
}
}
return 1;
}
return false;
}
return false;
}
return false;
}
return false;
}
return false;
}
return false;
}
return false;
}
}
}
}
}
}
return basic_type() == T_ARRAY;
}
return true;
}
// Typed conversions from SharkValues
}
}
}
}
}
}
}
return llvm_value();
}
return llvm_value();
}
return llvm_value();
}
return llvm_value();
}
return llvm_value();
}
// XXX assert(is_jarray(), "should be");
return llvm_value();
}
return _bci;
}
// Type-losing conversions -- use with care!
return llvm_value();
}
}
}
}
// Phi-style stuff for SharkPHIState::add_incoming
}
if (!value->zero_checked())
_all_incomers_zero_checked = false;
}
}
// Phi-style stuff for SharkState::merge
const char* name) {
}
const char* name) {
return this;
}
// Repeated null and divide-by-zero check removal
}
}
return _zero_checked;
}
}