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

Unified Diff: src/compiler/simplified-lowering.cc

Issue 2151223002: [turbofan] Add re-typing for PlainPrimitiveToNumber during representation inference. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 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 | test/mjsunit/compiler/regress-628516.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/simplified-lowering.cc
diff --git a/src/compiler/simplified-lowering.cc b/src/compiler/simplified-lowering.cc
index 7025e0e03f6538d5b15b815d2303f1538e9c48e0..0cc53ed9b48072796dcc8a44757edd3412ca4660 100644
--- a/src/compiler/simplified-lowering.cc
+++ b/src/compiler/simplified-lowering.cc
@@ -457,6 +457,10 @@ class RepresentationSelector {
break;
}
+ case IrOpcode::kPlainPrimitiveToNumber:
+ new_type = op_typer_.ToNumber(FeedbackTypeOf(node->InputAt(0)));
+ break;
+
case IrOpcode::kNumberAbs: {
new_type = op_typer_.NumberAbs(FeedbackTypeOf(node->InputAt(0)));
break;
« no previous file with comments | « no previous file | test/mjsunit/compiler/regress-628516.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698