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

Side by Side Diff: src/ast.h

Issue 23618002: Hydrogenisation of binops (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebase Created 7 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1953 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 virtual int position() const V8_OVERRIDE { return pos_; } 1964 virtual int position() const V8_OVERRIDE { return pos_; }
1965 1965
1966 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* zone); 1966 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* zone);
1967 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } 1967 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; }
1968 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { 1968 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
1969 return &receiver_types_; 1969 return &receiver_types_;
1970 } 1970 }
1971 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { 1971 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE {
1972 return store_mode_; 1972 return store_mode_;
1973 } 1973 }
1974 TypeInfo type() const { return type_; } 1974 Handle<Type> type() const { return type_; }
1975 1975
1976 BailoutId AssignmentId() const { return assignment_id_; } 1976 BailoutId AssignmentId() const { return assignment_id_; }
1977 1977
1978 TypeFeedbackId CountBinOpFeedbackId() const { return count_id_; } 1978 TypeFeedbackId CountBinOpFeedbackId() const { return count_id_; }
1979 TypeFeedbackId CountStoreFeedbackId() const { return reuse(id()); } 1979 TypeFeedbackId CountStoreFeedbackId() const { return reuse(id()); }
1980 1980
1981 protected: 1981 protected:
1982 CountOperation(Isolate* isolate, 1982 CountOperation(Isolate* isolate,
1983 Token::Value op, 1983 Token::Value op,
1984 bool is_prefix, 1984 bool is_prefix,
1985 Expression* expr, 1985 Expression* expr,
1986 int pos) 1986 int pos)
1987 : Expression(isolate), 1987 : Expression(isolate),
1988 op_(op), 1988 op_(op),
1989 is_prefix_(is_prefix), 1989 is_prefix_(is_prefix),
1990 is_monomorphic_(false), 1990 is_monomorphic_(false),
1991 store_mode_(STANDARD_STORE), 1991 store_mode_(STANDARD_STORE),
1992 expression_(expr), 1992 expression_(expr),
1993 pos_(pos), 1993 pos_(pos),
1994 assignment_id_(GetNextId(isolate)), 1994 assignment_id_(GetNextId(isolate)),
1995 count_id_(GetNextId(isolate)) {} 1995 count_id_(GetNextId(isolate)) {}
1996 1996
1997 private: 1997 private:
1998 Token::Value op_; 1998 Token::Value op_;
1999 bool is_prefix_ : 1; 1999 bool is_prefix_ : 1;
2000 bool is_monomorphic_ : 1; 2000 bool is_monomorphic_ : 1;
2001 KeyedAccessStoreMode store_mode_ : 5; // Windows treats as signed, 2001 KeyedAccessStoreMode store_mode_ : 5; // Windows treats as signed,
2002 // must have extra bit. 2002 // must have extra bit.
2003 TypeInfo type_; 2003 Handle<Type> type_;
2004 2004
2005 Expression* expression_; 2005 Expression* expression_;
2006 int pos_; 2006 int pos_;
2007 const BailoutId assignment_id_; 2007 const BailoutId assignment_id_;
2008 const TypeFeedbackId count_id_; 2008 const TypeFeedbackId count_id_;
2009 SmallMapList receiver_types_; 2009 SmallMapList receiver_types_;
2010 }; 2010 };
2011 2011
2012 2012
2013 class CompareOperation V8_FINAL : public Expression { 2013 class CompareOperation V8_FINAL : public Expression {
(...skipping 1243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3257 private: 3257 private:
3258 Isolate* isolate_; 3258 Isolate* isolate_;
3259 Zone* zone_; 3259 Zone* zone_;
3260 Visitor visitor_; 3260 Visitor visitor_;
3261 }; 3261 };
3262 3262
3263 3263
3264 } } // namespace v8::internal 3264 } } // namespace v8::internal
3265 3265
3266 #endif // V8_AST_H_ 3266 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698