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

Side by Side Diff: vm/parser.h

Issue 9381009: - Revert r4135: va_copy is not available everywhere. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 10 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 | « no previous file | vm/parser.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_PARSER_H_ 5 #ifndef VM_PARSER_H_
6 #define VM_PARSER_H_ 6 #define VM_PARSER_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 9
10 #include "vm/ast.h" 10 #include "vm/ast.h"
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void SkipStringLiteral(); 166 void SkipStringLiteral();
167 void SkipQualIdent(); 167 void SkipQualIdent();
168 168
169 void CheckConstructorCallTypeArguments( 169 void CheckConstructorCallTypeArguments(
170 intptr_t pos, 170 intptr_t pos,
171 Function& constructor, 171 Function& constructor,
172 const AbstractTypeArguments& type_arguments); 172 const AbstractTypeArguments& type_arguments);
173 173
174 // Format an error or warning message into the message_buffer. 174 // Format an error or warning message into the message_buffer.
175 // A null script means no source and a negative token_index means no position. 175 // A null script means no source and a negative token_index means no position.
176 static RawString* FormatMessage(const Script& script, 176 static void FormatMessage(const Script& script,
177 intptr_t token_index, 177 intptr_t token_index,
178 const char* message_header, 178 const char* message_header,
179 const char* format, 179 char* message_buffer,
180 va_list args); 180 intptr_t message_buffer_size,
181 const char* format,
182 va_list args);
181 183
182 // Reports error message at location of current token. 184 // Reports error message at location of current token.
183 void ErrorMsg(const char* msg, ...); 185 void ErrorMsg(const char* msg, ...);
184 void ErrorMsg(intptr_t token_index, const char* msg, ...); 186 void ErrorMsg(intptr_t token_index, const char* msg, ...);
185 void Warning(const char* msg, ...); 187 void Warning(const char* msg, ...);
186 void Warning(intptr_t token_index, const char* msg, ...); 188 void Warning(intptr_t token_index, const char* msg, ...);
187 void Unimplemented(const char* msg); 189 void Unimplemented(const char* msg);
188 190
189 const Instance& EvaluateConstExpr(AstNode* expr); 191 const Instance& EvaluateConstExpr(AstNode* expr);
190 void RunStaticFieldInitializer(const Field& field); 192 void RunStaticFieldInitializer(const Field& field);
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 // code at all points in the try block where an exit from the block is 454 // code at all points in the try block where an exit from the block is
453 // done using 'return', 'break' or 'continue' statements. 455 // done using 'return', 'break' or 'continue' statements.
454 TryBlocks* try_blocks_list_; 456 TryBlocks* try_blocks_list_;
455 457
456 DISALLOW_COPY_AND_ASSIGN(Parser); 458 DISALLOW_COPY_AND_ASSIGN(Parser);
457 }; 459 };
458 460
459 } // namespace dart 461 } // namespace dart
460 462
461 #endif // VM_PARSER_H_ 463 #endif // VM_PARSER_H_
OLDNEW
« no previous file with comments | « no previous file | vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698