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

Side by Side Diff: src/ast.h

Issue 3364002: clang compatibility changes
Patch Set: Created 10 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
« no previous file with comments | « no previous file | 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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 RegExpNode* on_success); 1740 RegExpNode* on_success);
1741 virtual RegExpText* AsText(); 1741 virtual RegExpText* AsText();
1742 virtual bool IsText(); 1742 virtual bool IsText();
1743 virtual bool IsTextElement() { return true; } 1743 virtual bool IsTextElement() { return true; }
1744 virtual int min_match() { return length_; } 1744 virtual int min_match() { return length_; }
1745 virtual int max_match() { return length_; } 1745 virtual int max_match() { return length_; }
1746 virtual void AppendToText(RegExpText* text); 1746 virtual void AppendToText(RegExpText* text);
1747 void AddElement(TextElement elm) { 1747 void AddElement(TextElement elm) {
1748 elements_.Add(elm); 1748 elements_.Add(elm);
1749 length_ += elm.length(); 1749 length_ += elm.length();
1750 }; 1750 }
1751 ZoneList<TextElement>* elements() { return &elements_; } 1751 ZoneList<TextElement>* elements() { return &elements_; }
1752 private: 1752 private:
1753 ZoneList<TextElement> elements_; 1753 ZoneList<TextElement> elements_;
1754 int length_; 1754 int length_;
1755 }; 1755 };
1756 1756
1757 1757
1758 class RegExpQuantifier: public RegExpTree { 1758 class RegExpQuantifier: public RegExpTree {
1759 public: 1759 public:
1760 enum Type { GREEDY, NON_GREEDY, POSSESSIVE }; 1760 enum Type { GREEDY, NON_GREEDY, POSSESSIVE };
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
1926 AST_NODE_LIST(DEF_VISIT) 1926 AST_NODE_LIST(DEF_VISIT)
1927 #undef DEF_VISIT 1927 #undef DEF_VISIT
1928 1928
1929 private: 1929 private:
1930 bool stack_overflow_; 1930 bool stack_overflow_;
1931 }; 1931 };
1932 1932
1933 } } // namespace v8::internal 1933 } } // namespace v8::internal
1934 1934
1935 #endif // V8_AST_H_ 1935 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698