Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Unified Diff: src/compiler/code-generator.cc

Issue 1407003015: [turbofan] Fix for register allocation crash (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « no previous file | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698