| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 1950 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1961 virtual int position() const V8_OVERRIDE { return pos_; } | 1961 virtual int position() const V8_OVERRIDE { return pos_; } |
| 1962 | 1962 |
| 1963 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* zone); | 1963 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* zone); |
| 1964 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } | 1964 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } |
| 1965 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { | 1965 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { |
| 1966 return &receiver_types_; | 1966 return &receiver_types_; |
| 1967 } | 1967 } |
| 1968 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { | 1968 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { |
| 1969 return store_mode_; | 1969 return store_mode_; |
| 1970 } | 1970 } |
| 1971 TypeInfo type() const { return type_; } | 1971 Handle<Type> type() const { return type_; } |
| 1972 | 1972 |
| 1973 BailoutId AssignmentId() const { return assignment_id_; } | 1973 BailoutId AssignmentId() const { return assignment_id_; } |
| 1974 | 1974 |
| 1975 TypeFeedbackId CountBinOpFeedbackId() const { return count_id_; } | 1975 TypeFeedbackId CountBinOpFeedbackId() const { return count_id_; } |
| 1976 TypeFeedbackId CountStoreFeedbackId() const { return reuse(id()); } | 1976 TypeFeedbackId CountStoreFeedbackId() const { return reuse(id()); } |
| 1977 | 1977 |
| 1978 protected: | 1978 protected: |
| 1979 CountOperation(Isolate* isolate, | 1979 CountOperation(Isolate* isolate, |
| 1980 Token::Value op, | 1980 Token::Value op, |
| 1981 bool is_prefix, | 1981 bool is_prefix, |
| 1982 Expression* expr, | 1982 Expression* expr, |
| 1983 int pos) | 1983 int pos) |
| 1984 : Expression(isolate), | 1984 : Expression(isolate), |
| 1985 op_(op), | 1985 op_(op), |
| 1986 is_prefix_(is_prefix), | 1986 is_prefix_(is_prefix), |
| 1987 is_monomorphic_(false), | 1987 is_monomorphic_(false), |
| 1988 store_mode_(STANDARD_STORE), | 1988 store_mode_(STANDARD_STORE), |
| 1989 expression_(expr), | 1989 expression_(expr), |
| 1990 pos_(pos), | 1990 pos_(pos), |
| 1991 assignment_id_(GetNextId(isolate)), | 1991 assignment_id_(GetNextId(isolate)), |
| 1992 count_id_(GetNextId(isolate)) {} | 1992 count_id_(GetNextId(isolate)) {} |
| 1993 | 1993 |
| 1994 private: | 1994 private: |
| 1995 Token::Value op_; | 1995 Token::Value op_; |
| 1996 bool is_prefix_ : 1; | 1996 bool is_prefix_ : 1; |
| 1997 bool is_monomorphic_ : 1; | 1997 bool is_monomorphic_ : 1; |
| 1998 KeyedAccessStoreMode store_mode_ : 5; // Windows treats as signed, | 1998 KeyedAccessStoreMode store_mode_ : 5; // Windows treats as signed, |
| 1999 // must have extra bit. | 1999 // must have extra bit. |
| 2000 TypeInfo type_; | 2000 Handle<Type> type_; |
| 2001 | 2001 |
| 2002 Expression* expression_; | 2002 Expression* expression_; |
| 2003 int pos_; | 2003 int pos_; |
| 2004 const BailoutId assignment_id_; | 2004 const BailoutId assignment_id_; |
| 2005 const TypeFeedbackId count_id_; | 2005 const TypeFeedbackId count_id_; |
| 2006 SmallMapList receiver_types_; | 2006 SmallMapList receiver_types_; |
| 2007 }; | 2007 }; |
| 2008 | 2008 |
| 2009 | 2009 |
| 2010 class CompareOperation V8_FINAL : public Expression { | 2010 class CompareOperation V8_FINAL : public Expression { |
| (...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3252 private: | 3252 private: |
| 3253 Isolate* isolate_; | 3253 Isolate* isolate_; |
| 3254 Zone* zone_; | 3254 Zone* zone_; |
| 3255 Visitor visitor_; | 3255 Visitor visitor_; |
| 3256 }; | 3256 }; |
| 3257 | 3257 |
| 3258 | 3258 |
| 3259 } } // namespace v8::internal | 3259 } } // namespace v8::internal |
| 3260 | 3260 |
| 3261 #endif // V8_AST_H_ | 3261 #endif // V8_AST_H_ |
| OLD | NEW |