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

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

Issue 2547043002: [Interpreter] Optimize equality check with null/undefined with a check on the map. (Closed)
Patch Set: Fixed a bug in reducing JSIsUndetectable. 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/js-operator.cc
diff --git a/src/compiler/js-operator.cc b/src/compiler/js-operator.cc
index fa55c40837906bdd7924dd36464606f652bb6eee..57d64a2a36a23499a6a884cad7e707a3c0f78c30 100644
--- a/src/compiler/js-operator.cc
+++ b/src/compiler/js-operator.cc
@@ -600,6 +600,14 @@ const Operator* JSOperatorBuilder::ToBoolean(ToBooleanHints hints) {
hints); // parameter
}
+const Operator* JSOperatorBuilder::IsUndetectable() {
+ // TODO(mythria): Check if we need to cache this operation.
+ return new (zone()) Operator( // --
+ IrOpcode::kJSIsUndetectable, Operator::kPure, // opcode
mythria 2016/12/05 10:05:42 If my understanding is correct, this operation doe
+ "JSTestUndetectable", // name
+ 1, 0, 0, 1, 0, 0); // inputs/outputs
+}
+
const Operator* JSOperatorBuilder::CallFunction(
size_t arity, float frequency, VectorSlotPair const& feedback,
ConvertReceiverMode convert_mode, TailCallMode tail_call_mode) {

Powered by Google App Engine
This is Rietveld 408576698