| Index: src/compiler/code-generator.cc
|
| diff --git a/src/compiler/code-generator.cc b/src/compiler/code-generator.cc
|
| index 985e60ec77e7b7f08ad60f4f58e410d1e902a37d..3c265c64c97f9dcf3e4f0c65173afced589622df 100644
|
| --- a/src/compiler/code-generator.cc
|
| +++ b/src/compiler/code-generator.cc
|
| @@ -632,6 +632,10 @@ void CodeGenerator::AddTranslationForOperand(Translation* translation,
|
| constant_object =
|
| isolate()->factory()->NewNumberFromInt(constant.ToInt32());
|
| break;
|
| + case Constant::kFloat32:
|
| + DCHECK((type & (kRepFloat32 | kRepTagged)) != 0);
|
| + constant_object = isolate()->factory()->NewNumber(constant.ToFloat32());
|
| + break;
|
| case Constant::kFloat64:
|
| DCHECK((type & (kRepFloat64 | kRepTagged)) != 0);
|
| constant_object = isolate()->factory()->NewNumber(constant.ToFloat64());
|
|
|