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

Side by Side Diff: src/ast.h

Issue 95163002: Move more logic from AST to oracle, pt 2 (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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 | « no previous file | src/ast.cc » ('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 1673 matching lines...) Expand 10 before | Expand all | Expand 10 after
1684 1684
1685 Expression* obj() const { return obj_; } 1685 Expression* obj() const { return obj_; }
1686 Expression* key() const { return key_; } 1686 Expression* key() const { return key_; }
1687 1687
1688 BailoutId LoadId() const { return load_id_; } 1688 BailoutId LoadId() const { return load_id_; }
1689 1689
1690 bool IsStringAccess() const { return is_string_access_; } 1690 bool IsStringAccess() const { return is_string_access_; }
1691 bool IsFunctionPrototype() const { return is_function_prototype_; } 1691 bool IsFunctionPrototype() const { return is_function_prototype_; }
1692 1692
1693 // Type feedback information. 1693 // Type feedback information.
1694 void RecordTypeFeedback(TypeFeedbackOracle* oracle, Zone* zone);
1695 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; } 1694 virtual bool IsMonomorphic() V8_OVERRIDE { return is_monomorphic_; }
1696 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE { 1695 virtual SmallMapList* GetReceiverTypes() V8_OVERRIDE {
1697 return &receiver_types_; 1696 return &receiver_types_;
1698 } 1697 }
1699 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE { 1698 virtual KeyedAccessStoreMode GetStoreMode() V8_OVERRIDE {
1700 return STANDARD_STORE; 1699 return STANDARD_STORE;
1701 } 1700 }
1702 bool IsUninitialized() { return is_uninitialized_; } 1701 bool IsUninitialized() { return is_uninitialized_; }
1703 bool IsPreMonomorphic() { return is_pre_monomorphic_; } 1702 bool IsPreMonomorphic() { return is_pre_monomorphic_; }
1704 bool HasNoTypeInformation() { 1703 bool HasNoTypeInformation() {
1705 return is_uninitialized_ || is_pre_monomorphic_; 1704 return is_uninitialized_ || is_pre_monomorphic_;
1706 } 1705 }
1706 void set_is_uninitialized(bool b) { is_uninitialized_ = b; }
1707 void set_is_monomorphic(bool b) { is_monomorphic_ = b; }
1708 void set_is_pre_monomorphic(bool b) { is_pre_monomorphic_ = b; }
1709 void set_is_string_access(bool b) { is_string_access_ = b; }
1710 void set_is_function_prototype(bool b) { is_function_prototype_ = b; }
1711
1707 TypeFeedbackId PropertyFeedbackId() { return reuse(id()); } 1712 TypeFeedbackId PropertyFeedbackId() { return reuse(id()); }
1708 1713
1709 protected: 1714 protected:
1710 Property(Isolate* isolate, 1715 Property(Isolate* isolate,
1711 Expression* obj, 1716 Expression* obj,
1712 Expression* key, 1717 Expression* key,
1713 int pos) 1718 int pos)
1714 : Expression(isolate, pos), 1719 : Expression(isolate, pos),
1715 obj_(obj), 1720 obj_(obj),
1716 key_(key), 1721 key_(key),
(...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 private: 3298 private:
3294 Isolate* isolate_; 3299 Isolate* isolate_;
3295 Zone* zone_; 3300 Zone* zone_;
3296 Visitor visitor_; 3301 Visitor visitor_;
3297 }; 3302 };
3298 3303
3299 3304
3300 } } // namespace v8::internal 3305 } } // namespace v8::internal
3301 3306
3302 #endif // V8_AST_H_ 3307 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698