Chromium Code Reviews

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

Issue 2191883002: [turbofan] Adds speculative opcodes for shift right. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Update. Created 4 years, 5 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/simplified-operator.cc
diff --git a/src/compiler/simplified-operator.cc b/src/compiler/simplified-operator.cc
index 8e18b673b616559eabf8b743348c6163d05ddcbc..813900f50402f4b6072f2a93bfe5f5c5b150932c 100644
--- a/src/compiler/simplified-operator.cc
+++ b/src/compiler/simplified-operator.cc
@@ -267,7 +267,9 @@ BinaryOperationHints::Hint BinaryOperationHintOf(const Operator* op) {
op->opcode() == IrOpcode::kSpeculativeNumberMultiply ||
op->opcode() == IrOpcode::kSpeculativeNumberDivide ||
op->opcode() == IrOpcode::kSpeculativeNumberModulus ||
- op->opcode() == IrOpcode::kSpeculativeNumberShiftLeft);
+ op->opcode() == IrOpcode::kSpeculativeNumberShiftLeft ||
+ op->opcode() == IrOpcode::kSpeculativeNumberShiftRight ||
+ op->opcode() == IrOpcode::kSpeculativeNumberShiftRightLogical);
return OpParameter<BinaryOperationHints::Hint>(op);
}
@@ -363,7 +365,9 @@ CompareOperationHints::Hint CompareOperationHintOf(const Operator* op) {
V(SpeculativeNumberDivide) \
V(SpeculativeNumberMultiply) \
V(SpeculativeNumberModulus) \
- V(SpeculativeNumberShiftLeft)
+ V(SpeculativeNumberShiftLeft) \
+ V(SpeculativeNumberShiftRight) \
+ V(SpeculativeNumberShiftRightLogical)
#define CHECKED_OP_LIST(V) \
V(CheckBounds, 2, 1) \

Powered by Google App Engine