Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index 92e659f7129ab6b60bee9882f2ea2369da58ce3a..8f15a62a78e5dd84d46436443f471803713fc344 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -416,6 +416,8 @@ bool LCodeGen::IsTaggedConstant(LConstantOperand* op) const { |
int LCodeGen::ToInteger32(LConstantOperand* op) const { |
HConstant* constant = chunk_->LookupConstant(op); |
+ ASSERT(chunk_->LookupLiteralRepresentation(op).IsInteger32()); |
+ ASSERT(constant->HasInteger32Value()); |
return constant->Integer32Value(); |
} |