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

Side by Side Diff: src/parser.cc

Issue 3427021: Fix some inconsistent formatting. (Closed)
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 | « src/mips/codegen-mips.h ('k') | src/rewriter.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 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 149
150 Target* target_stack_; // for break, continue statements 150 Target* target_stack_; // for break, continue statements
151 bool allow_natives_syntax_; 151 bool allow_natives_syntax_;
152 v8::Extension* extension_; 152 v8::Extension* extension_;
153 ParserFactory* factory_; 153 ParserFactory* factory_;
154 ParserLog* log_; 154 ParserLog* log_;
155 bool is_pre_parsing_; 155 bool is_pre_parsing_;
156 ScriptDataImpl* pre_data_; 156 ScriptDataImpl* pre_data_;
157 FuncNameInferrer* fni_; 157 FuncNameInferrer* fni_;
158 158
159 bool inside_with() const { return with_nesting_level_ > 0; } 159 bool inside_with() const { return with_nesting_level_ > 0; }
160 ParserFactory* factory() const { return factory_; } 160 ParserFactory* factory() const { return factory_; }
161 ParserLog* log() const { return log_; } 161 ParserLog* log() const { return log_; }
162 Scanner& scanner() { return scanner_; } 162 Scanner& scanner() { return scanner_; }
163 Mode mode() const { return mode_; } 163 Mode mode() const { return mode_; }
164 ScriptDataImpl* pre_data() const { return pre_data_; } 164 ScriptDataImpl* pre_data() const { return pre_data_; }
165 165
166 // All ParseXXX functions take as the last argument an *ok parameter 166 // All ParseXXX functions take as the last argument an *ok parameter
167 // which is set to false if parsing failed; it is unchanged otherwise. 167 // which is set to false if parsing failed; it is unchanged otherwise.
168 // By making the 'exception handling' explicit, we are forced to check 168 // By making the 'exception handling' explicit, we are forced to check
169 // for failure at the call sites. 169 // for failure at the call sites.
170 void* ParseSourceElements(ZoneListWrapper<Statement>* processor, 170 void* ParseSourceElements(ZoneListWrapper<Statement>* processor,
171 int end_token, bool* ok); 171 int end_token, bool* ok);
172 Statement* ParseStatement(ZoneStringList* labels, bool* ok); 172 Statement* ParseStatement(ZoneStringList* labels, bool* ok);
173 Statement* ParseFunctionDeclaration(bool* ok); 173 Statement* ParseFunctionDeclaration(bool* ok);
174 Statement* ParseNativeDeclaration(bool* ok); 174 Statement* ParseNativeDeclaration(bool* ok);
(...skipping 5448 matching lines...) Expand 10 before | Expand all | Expand 10 after
5623 parser.ParseLazy(script_source, name, 5623 parser.ParseLazy(script_source, name,
5624 start_position, end_position, is_expression); 5624 start_position, end_position, is_expression);
5625 return result; 5625 return result;
5626 } 5626 }
5627 5627
5628 5628
5629 #undef NEW 5629 #undef NEW
5630 5630
5631 5631
5632 } } // namespace v8::internal 5632 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.h ('k') | src/rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698