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

Unified Diff: src/compiler/opcodes.h

Issue 2559173003: [compiler] Generalize JSContextSpecialization. (Closed)
Patch Set: . Created 4 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/opcodes.h
diff --git a/src/compiler/opcodes.h b/src/compiler/opcodes.h
index 05851289b0318e4004cfd0eef290e156a12aa0d2..d4a514ae39bfe07eee00ba5bfccf935783a6159a 100644
--- a/src/compiler/opcodes.h
+++ b/src/compiler/opcodes.h
@@ -795,6 +795,10 @@ class V8_EXPORT_PRIVATE IrOpcode {
(kNumberEqual <= value && value <= kStringLessThanOrEqual) ||
(kWord32Equal <= value && value <= kFloat64LessThanOrEqual);
}
+
+ static bool IsContextExtendingOpcode(Value value) {
Michael Starzinger 2017/01/13 13:36:26 nit: Can we either rename this predicate to "IsCon
neis 2017/01/13 14:08:02 Done. Totally agree.
+ return kJSCreateFunctionContext <= value && value <= kJSCreateScriptContext;
+ }
};
V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream&, IrOpcode::Value);

Powered by Google App Engine
This is Rietveld 408576698