Index: src/compiler/opcodes.h |
diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h |
index e8fb0e208ecc0d117bf52e3af6fb8a2ca3921094..1d900957690cc273b35d8fae2271169a3f2270df 100644 |
--- a/src/compiler/opcodes.h |
+++ b/src/compiler/opcodes.h |
@@ -800,6 +800,10 @@ class V8_EXPORT_PRIVATE IrOpcode { |
(kNumberEqual <= value && value <= kStringLessThanOrEqual) || |
(kWord32Equal <= value && value <= kFloat64LessThanOrEqual); |
} |
+ |
+ static bool IsContextChainExtendingOpcode(Value value) { |
+ return kJSCreateFunctionContext <= value && value <= kJSCreateScriptContext; |
+ } |
}; |
V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value); |