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

Side by Side Diff: src/ast.h

Issue 57052: * String type inference using compiler framework. (Closed)
Patch Set: Changes relative to head of bleeding edge (don't do diff with earlier versions) Created 11 years, 8 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/builtins.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 virtual Expression* AsExpression() { return this; } 156 virtual Expression* AsExpression() { return this; }
157 157
158 virtual bool IsValidLeftHandSide() { return false; } 158 virtual bool IsValidLeftHandSide() { return false; }
159 159
160 // Mark the expression as being compiled as an expression 160 // Mark the expression as being compiled as an expression
161 // statement. This is used to transform postfix increments to 161 // statement. This is used to transform postfix increments to
162 // (faster) prefix increments. 162 // (faster) prefix increments.
163 virtual void MarkAsStatement() { /* do nothing */ } 163 virtual void MarkAsStatement() { /* do nothing */ }
164 164
165 // Static type information for this expression. 165 // Static type information for this expression.
166 StaticType* type() { return &type_; } 166 SmiAnalysis* type() { return &type_; }
167 167
168 private: 168 private:
169 StaticType type_; 169 SmiAnalysis type_;
170 }; 170 };
171 171
172 172
173 /** 173 /**
174 * A sentinel used during pre parsing that represents some expression 174 * A sentinel used during pre parsing that represents some expression
175 * that is a valid left hand side without having to actually build 175 * that is a valid left hand side without having to actually build
176 * the expression. 176 * the expression.
177 */ 177 */
178 class ValidLeftHandSideSentinel: public Expression { 178 class ValidLeftHandSideSentinel: public Expression {
179 public: 179 public:
(...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after
1694 #undef DEF_VISIT 1694 #undef DEF_VISIT
1695 1695
1696 private: 1696 private:
1697 bool stack_overflow_; 1697 bool stack_overflow_;
1698 }; 1698 };
1699 1699
1700 1700
1701 } } // namespace v8::internal 1701 } } // namespace v8::internal
1702 1702
1703 #endif // V8_AST_H_ 1703 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698