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

Side by Side Diff: src/ast.h

Issue 506050: - Undo unfortunate renaming of StaticType. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 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/ia32/codegen-ia32.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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 185
186 virtual bool IsValidJSON() { return false; } 186 virtual bool IsValidJSON() { return false; }
187 virtual bool IsValidLeftHandSide() { return false; } 187 virtual bool IsValidLeftHandSide() { return false; }
188 188
189 // Mark the expression as being compiled as an expression 189 // Mark the expression as being compiled as an expression
190 // statement. This is used to transform postfix increments to 190 // statement. This is used to transform postfix increments to
191 // (faster) prefix increments. 191 // (faster) prefix increments.
192 virtual void MarkAsStatement() { /* do nothing */ } 192 virtual void MarkAsStatement() { /* do nothing */ }
193 193
194 // Static type information for this expression. 194 // Static type information for this expression.
195 SmiAnalysis* type() { return &type_; } 195 StaticType* type() { return &type_; }
196 196
197 Context context() { return context_; } 197 Context context() { return context_; }
198 void set_context(Context context) { context_ = context; } 198 void set_context(Context context) { context_ = context; }
199 199
200 private: 200 private:
201 SmiAnalysis type_; 201 StaticType type_;
202 Context context_; 202 Context context_;
203 }; 203 };
204 204
205 205
206 /** 206 /**
207 * A sentinel used during pre parsing that represents some expression 207 * A sentinel used during pre parsing that represents some expression
208 * that is a valid left hand side without having to actually build 208 * that is a valid left hand side without having to actually build
209 * the expression. 209 * the expression.
210 */ 210 */
211 class ValidLeftHandSideSentinel: public Expression { 211 class ValidLeftHandSideSentinel: public Expression {
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1783 #undef DEF_VISIT 1783 #undef DEF_VISIT
1784 1784
1785 private: 1785 private:
1786 bool stack_overflow_; 1786 bool stack_overflow_;
1787 }; 1787 };
1788 1788
1789 1789
1790 } } // namespace v8::internal 1790 } } // namespace v8::internal
1791 1791
1792 #endif // V8_AST_H_ 1792 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698