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

Unified Diff: src/compiler/instruction-selector-impl.h

Issue 2177483002: [turbofan] Handle impossible types (Type::None()) in the backend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix?? 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
Index: src/compiler/instruction-selector-impl.h
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
index 11d66fa16b1957256f873497134659b852859dc4..83d18c3fc053af9f8f891a1a2f2da2088ee756cb 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -62,9 +62,13 @@ class OperandGenerator {
}
InstructionOperand DefineAsConstant(Node* node) {
+ return DefineAsConstant(node, ToConstant(node));
+ }
+
+ InstructionOperand DefineAsConstant(Node* node, Constant constant) {
selector()->MarkAsDefined(node);
int virtual_register = GetVReg(node);
- sequence()->AddConstant(virtual_register, ToConstant(node));
+ sequence()->AddConstant(virtual_register, constant);
return ConstantOperand(virtual_register);
}

Powered by Google App Engine
This is Rietveld 408576698