Tag smi-constants as smi.

R=jkummerow@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16010004

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14834 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
verwaest@chromium.org 2013-05-28 08:00:42 +00:00
parent 9974d932b2
commit f98ee1a223

View File

@ -2165,7 +2165,9 @@ HConstant::HConstant(double double_value,
void HConstant::Initialize(Representation r) { void HConstant::Initialize(Representation r) {
if (r.IsNone()) { if (r.IsNone()) {
if (has_int32_value_) { if (has_smi_value_) {
r = Representation::Smi();
} else if (has_int32_value_) {
r = Representation::Integer32(); r = Representation::Integer32();
} else if (has_double_value_) { } else if (has_double_value_) {
r = Representation::Double(); r = Representation::Double();