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

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

Issue 1485183002: [turbofan] Deopt support for escape analysis (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@ea-local
Patch Set: Created 5 years 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 7136de96b1d6bda3d7216e43e675ca3808eef2b5..4202c6b8cfbc35c5f93bccc1e85db63a05028940 100644
--- a/src/compiler/instruction-selector-impl.h
+++ b/src/compiler/instruction-selector-impl.h
@@ -193,6 +193,25 @@ class OperandGenerator {
Constant(RpoNumber::FromInt(block->rpo_number())));
}
+ InstructionOperand UseForDeopt(Node* node, FrameStateInputKind kind) {
+ switch (node->opcode()) {
+ case IrOpcode::kInt32Constant:
+ case IrOpcode::kNumberConstant:
+ case IrOpcode::kFloat32Constant:
+ case IrOpcode::kFloat64Constant:
+ case IrOpcode::kHeapConstant:
+ return UseImmediate(node);
+ default:
+ switch (kind) {
+ case FrameStateInputKind::kStackSlot:
+ return UseUniqueSlot(node);
+ case FrameStateInputKind::kAny:
+ return UseAny(node);
+ }
+ }
+ UNREACHABLE();
+ }
+
protected:
InstructionSelector* selector() const { return selector_; }
InstructionSequence* sequence() const { return selector()->sequence(); }

Powered by Google App Engine
This is Rietveld 408576698