Chromium Code Reviews

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

Issue 1389373002: [turbofan] Create ExplicitOperands to specify operands without virtual registers (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Tweaks Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: src/compiler/instruction-selector-impl.h
diff --git a/src/compiler/instruction-selector-impl.h b/src/compiler/instruction-selector-impl.h
index 2ee099f9a8721df845a9640446632a67d0e050f7..c30977076e993a2fad4ef8a4dd33ba696e95ebee 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -114,6 +114,11 @@ class OperandGenerator {
reg.code(), GetVReg(node)));
}
+ InstructionOperand UseExplicit(Register reg) {
+ MachineType machine_type = InstructionSequence::DefaultRepresentation();
+ return ExplicitOperand(LocationOperand::REGISTER, machine_type, reg.code());
+ }
+
InstructionOperand UseImmediate(Node* node) {
return sequence()->AddImmediate(ToConstant(node));
}

Powered by Google App Engine