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

Unified Diff: src/crankshaft/hydrogen-instructions.h

Issue 1722193002: [compiler] Drop the CompareNilIC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Only JS_OBJECT_TYPE, JS_GLOBAL_OBJECT_TYPE and JS_GLOBAL_PROXY_TYPE can be undetectable Created 4 years, 10 months 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/crankshaft/hydrogen-instructions.h
diff --git a/src/crankshaft/hydrogen-instructions.h b/src/crankshaft/hydrogen-instructions.h
index 22ed052ba39eccaf4500e8366d553765416b09e1..11381a2194161ef7522f9fccda27e69deb500947 100644
--- a/src/crankshaft/hydrogen-instructions.h
+++ b/src/crankshaft/hydrogen-instructions.h
@@ -4429,13 +4429,22 @@ class HIsUndetectableAndBranch final : public HUnaryControlInstruction {
bool KnownSuccessorBlock(HBasicBlock** block) override;
+ static const int kNoKnownSuccessorIndex = -1;
+ int known_successor_index() const { return known_successor_index_; }
+ void set_known_successor_index(int known_successor_index) {
+ known_successor_index_ = known_successor_index;
+ }
+
DECLARE_CONCRETE_INSTRUCTION(IsUndetectableAndBranch)
private:
HIsUndetectableAndBranch(HValue* value,
HBasicBlock* true_target = NULL,
HBasicBlock* false_target = NULL)
- : HUnaryControlInstruction(value, true_target, false_target) {}
+ : HUnaryControlInstruction(value, true_target, false_target),
+ known_successor_index_(kNoKnownSuccessorIndex) {}
+
+ int known_successor_index_;
danno 2016/02/24 08:25:40 Maybe I'm missing something, but it doesn't look l
Benedikt Meurer 2016/02/24 08:41:18 Right, I tried to add support for HIsUndetectableA
};

Powered by Google App Engine
This is Rietveld 408576698