| Index: src/hydrogen-instructions.h
|
| diff --git a/src/hydrogen-instructions.h b/src/hydrogen-instructions.h
|
| index 80773bf14789e8524dc4c46184588641d6396495..567ca8783c8dfa6fa05a24d76af7c9d32540da5b 100644
|
| --- a/src/hydrogen-instructions.h
|
| +++ b/src/hydrogen-instructions.h
|
| @@ -4444,15 +4444,26 @@ class HTypeofIsAndBranch V8_FINAL : public HUnaryControlInstruction {
|
| DECLARE_CONCRETE_INSTRUCTION(TypeofIsAndBranch)
|
|
|
| virtual Representation RequiredInputRepresentation(int index) V8_OVERRIDE {
|
| - return Representation::Tagged();
|
| + return Representation::None();
|
| }
|
|
|
| + virtual HValue* Canonicalize() V8_OVERRIDE;
|
| +
|
| + enum State {
|
| + kUnKnown,
|
| + kAlwaysTrue,
|
| + kAlwaysFalse
|
| + };
|
| +
|
| + State state() { return state_; }
|
| +
|
| private:
|
| HTypeofIsAndBranch(HValue* value, Handle<String> type_literal)
|
| : HUnaryControlInstruction(value, NULL, NULL),
|
| - type_literal_(type_literal) { }
|
| + type_literal_(type_literal), state_(kUnKnown) { }
|
|
|
| Handle<String> type_literal_;
|
| + State state_;
|
| };
|
|
|
|
|
|
|