Index: src/ast.h |
diff --git a/src/ast.h b/src/ast.h |
index 71639d5dd2d8a29645b3d26a543c810d0f4efa55..ab300db7fb5a6e96194ea809f4ea8ecaeb3f897d 100644 |
--- a/src/ast.h |
+++ b/src/ast.h |
@@ -726,6 +726,8 @@ class CaseClause: public ZoneObject { |
// Type feedback information. |
void RecordTypeFeedback(TypeFeedbackOracle* oracle); |
bool IsSmiCompare() { return compare_type_ == SMI_ONLY; } |
+ bool IsSymbolCompare() { return compare_type_ == SYMBOL_ONLY; } |
+ bool IsStringCompare() { return compare_type_ == STRING_ONLY; } |
bool IsObjectCompare() { return compare_type_ == OBJECT_ONLY; } |
private: |
@@ -733,7 +735,13 @@ class CaseClause: public ZoneObject { |
Label body_target_; |
ZoneList<Statement*>* statements_; |
int position_; |
- enum CompareTypeFeedback { NONE, SMI_ONLY, OBJECT_ONLY }; |
+ enum CompareTypeFeedback { |
+ NONE, |
+ SMI_ONLY, |
+ SYMBOL_ONLY, |
+ STRING_ONLY, |
+ OBJECT_ONLY |
+ }; |
CompareTypeFeedback compare_type_; |
int compare_id_; |
int entry_id_; |