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

Side by Side Diff: src/messages.h

Issue 1315823002: Parse arrow functions at proper precedence level (Closed) Base URL: https://chromium.googlesource.com/v8/v8@master
Patch Set: Fix nits Created 5 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/interpreter/bytecode-generator.cc ('k') | src/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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ 301 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \
302 T(InvalidLhsInPostfixOp, \ 302 T(InvalidLhsInPostfixOp, \
303 "Invalid left-hand side expression in postfix operation") \ 303 "Invalid left-hand side expression in postfix operation") \
304 T(InvalidLhsInPrefixOp, \ 304 T(InvalidLhsInPrefixOp, \
305 "Invalid left-hand side expression in prefix operation") \ 305 "Invalid left-hand side expression in prefix operation") \
306 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ 306 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
307 T(LabelRedeclaration, "Label '%' has already been declared") \ 307 T(LabelRedeclaration, "Label '%' has already been declared") \
308 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 308 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
309 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 309 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
310 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 310 T(MalformedRegExpFlags, "Invalid regular expression flags") \
311 T(MissingArrow, \
312 "Expected () to start arrow function, but got '%' instead of '=>'") \
313 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 311 T(ModuleExportUndefined, "Export '%' is not defined in module") \
314 T(MultipleDefaultsInSwitch, \ 312 T(MultipleDefaultsInSwitch, \
315 "More than one default clause in switch statement") \ 313 "More than one default clause in switch statement") \
316 T(NewlineAfterThrow, "Illegal newline after throw") \ 314 T(NewlineAfterThrow, "Illegal newline after throw") \
317 T(NoCatchOrFinally, "Missing catch or finally after try") \ 315 T(NoCatchOrFinally, "Missing catch or finally after try") \
318 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ 316 T(NotIsvar, "builtin %%IS_VAR: not a variable") \
319 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ 317 T(ParamAfterRest, "Rest parameter must be last formal parameter") \
320 T(BadSetterRestParameter, \ 318 T(BadSetterRestParameter, \
321 "Setter function argument must not be a rest parameter") \ 319 "Setter function argument must not be a rest parameter") \
322 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 320 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 480
483 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 481 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
484 Isolate* isolate, LookupIterator* property_lookup, 482 Isolate* isolate, LookupIterator* property_lookup,
485 Handle<String> default_value); 483 Handle<String> default_value);
486 484
487 List<Handle<JSObject> > visited_; 485 List<Handle<JSObject> > visited_;
488 }; 486 };
489 } } // namespace v8::internal 487 } } // namespace v8::internal
490 488
491 #endif // V8_MESSAGES_H_ 489 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698