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

Side by Side Diff: src/ast.h

Issue 3186: Refactor the enum RelocMode changing the naming scheme from lower case to... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 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/assembler-ia32-inl.h ('k') | src/builtins-arm.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 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 #undef DEF_FORWARD_DECLARATION 94 #undef DEF_FORWARD_DECLARATION
95 95
96 96
97 // Typedef only introduced to avoid unreadable code. 97 // Typedef only introduced to avoid unreadable code.
98 // Please do appreciate the required space in "> >". 98 // Please do appreciate the required space in "> >".
99 typedef ZoneList<Handle<String> > ZoneStringList; 99 typedef ZoneList<Handle<String> > ZoneStringList;
100 100
101 101
102 class Node: public ZoneObject { 102 class Node: public ZoneObject {
103 public: 103 public:
104 Node(): statement_pos_(kNoPosition) { } 104 Node(): statement_pos_(RelocInfo::kNoPosition) { }
105 virtual ~Node() { } 105 virtual ~Node() { }
106 virtual void Accept(Visitor* v) = 0; 106 virtual void Accept(Visitor* v) = 0;
107 107
108 // Type testing & conversion. 108 // Type testing & conversion.
109 virtual Statement* AsStatement() { return NULL; } 109 virtual Statement* AsStatement() { return NULL; }
110 virtual ExpressionStatement* AsExpressionStatement() { return NULL; } 110 virtual ExpressionStatement* AsExpressionStatement() { return NULL; }
111 virtual EmptyStatement* AsEmptyStatement() { return NULL; } 111 virtual EmptyStatement* AsEmptyStatement() { return NULL; }
112 virtual Expression* AsExpression() { return NULL; } 112 virtual Expression* AsExpression() { return NULL; }
113 virtual Literal* AsLiteral() { return NULL; } 113 virtual Literal* AsLiteral() { return NULL; }
114 virtual Slot* AsSlot() { return NULL; } 114 virtual Slot* AsSlot() { return NULL; }
(...skipping 1045 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 : name_(name), 1160 : name_(name),
1161 scope_(scope), 1161 scope_(scope),
1162 body_(body), 1162 body_(body),
1163 materialized_literal_count_(materialized_literal_count), 1163 materialized_literal_count_(materialized_literal_count),
1164 contains_array_literal_(contains_array_literal), 1164 contains_array_literal_(contains_array_literal),
1165 expected_property_count_(expected_property_count), 1165 expected_property_count_(expected_property_count),
1166 num_parameters_(num_parameters), 1166 num_parameters_(num_parameters),
1167 start_position_(start_position), 1167 start_position_(start_position),
1168 end_position_(end_position), 1168 end_position_(end_position),
1169 is_expression_(is_expression), 1169 is_expression_(is_expression),
1170 function_token_position_(kNoPosition) { 1170 function_token_position_(RelocInfo::kNoPosition) {
1171 } 1171 }
1172 1172
1173 virtual void Accept(Visitor* v); 1173 virtual void Accept(Visitor* v);
1174 1174
1175 // Type testing & conversion 1175 // Type testing & conversion
1176 virtual FunctionLiteral* AsFunctionLiteral() { return this; } 1176 virtual FunctionLiteral* AsFunctionLiteral() { return this; }
1177 1177
1178 Handle<String> name() const { return name_; } 1178 Handle<String> name() const { return name_; }
1179 Scope* scope() const { return scope_; } 1179 Scope* scope() const { return scope_; }
1180 ZoneList<Statement*>* body() const { return body_; } 1180 ZoneList<Statement*>* body() const { return body_; }
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1266 #undef DEF_VISIT 1266 #undef DEF_VISIT
1267 1267
1268 private: 1268 private:
1269 bool stack_overflow_; 1269 bool stack_overflow_;
1270 }; 1270 };
1271 1271
1272 1272
1273 } } // namespace v8::internal 1273 } } // namespace v8::internal
1274 1274
1275 #endif // V8_AST_H_ 1275 #endif // V8_AST_H_
OLDNEW
« no previous file with comments | « src/assembler-ia32-inl.h ('k') | src/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698