Index: src/compiler/code-generator.cc |
diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc |
index b503a6cb57c6ee5e1db3ec876709d9a50ea54de3..acda1d2c5a0237e707585dd44b873e24673bf9be 100644 |
--- a/src/compiler/code-generator.cc |
+++ b/src/compiler/code-generator.cc |
@@ -865,7 +865,11 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation, |
switch (constant.type()) { |
case Constant::kInt32: |
DCHECK(type == MachineType::Int32() || type == MachineType::Uint32() || |
- type.representation() == MachineRepresentation::kBit); |
+ type.representation() == MachineRepresentation::kBit || |
+ type.representation() == MachineRepresentation::kNone); |
+ DCHECK(type.representation() != MachineRepresentation::kNone || |
+ constant.ToInt32() == FrameStateDescriptor::kImpossibleValue); |
+ |
constant_object = |
isolate()->factory()->NewNumberFromInt(constant.ToInt32()); |
break; |