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

Side by Side Diff: src/messages.h

Issue 1309813007: [es6] implement destructuring assignment (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add explicit placeholder RewritableExpression for rewriting Created 5 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
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 T(ForOfLoopInitializer, \ 318 T(ForOfLoopInitializer, \
319 "for-of loop variable declaration may not have an initializer.") \ 319 "for-of loop variable declaration may not have an initializer.") \
320 T(IllegalAccess, "Illegal access") \ 320 T(IllegalAccess, "Illegal access") \
321 T(IllegalBreak, "Illegal break statement") \ 321 T(IllegalBreak, "Illegal break statement") \
322 T(IllegalContinue, "Illegal continue statement") \ 322 T(IllegalContinue, "Illegal continue statement") \
323 T(IllegalLanguageModeDirective, \ 323 T(IllegalLanguageModeDirective, \
324 "Illegal '%' directive in function with non-simple parameter list") \ 324 "Illegal '%' directive in function with non-simple parameter list") \
325 T(IllegalReturn, "Illegal return statement") \ 325 T(IllegalReturn, "Illegal return statement") \
326 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \ 326 T(InvalidEscapedReservedWord, "Keyword must not contain escaped characters") \
327 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ 327 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \
328 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \
329 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \
328 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ 330 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \
329 T(InvalidLhsInPostfixOp, \ 331 T(InvalidLhsInPostfixOp, \
330 "Invalid left-hand side expression in postfix operation") \ 332 "Invalid left-hand side expression in postfix operation") \
331 T(InvalidLhsInPrefixOp, \ 333 T(InvalidLhsInPrefixOp, \
332 "Invalid left-hand side expression in prefix operation") \ 334 "Invalid left-hand side expression in prefix operation") \
333 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ 335 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
334 T(LabelRedeclaration, "Label '%' has already been declared") \ 336 T(LabelRedeclaration, "Label '%' has already been declared") \
335 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 337 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
336 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 338 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
337 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 339 T(MalformedRegExpFlags, "Invalid regular expression flags") \
338 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 340 T(ModuleExportUndefined, "Export '%' is not defined in module") \
339 T(MultipleDefaultsInSwitch, \ 341 T(MultipleDefaultsInSwitch, \
340 "More than one default clause in switch statement") \ 342 "More than one default clause in switch statement") \
341 T(NewlineAfterThrow, "Illegal newline after throw") \ 343 T(NewlineAfterThrow, "Illegal newline after throw") \
342 T(NoCatchOrFinally, "Missing catch or finally after try") \ 344 T(NoCatchOrFinally, "Missing catch or finally after try") \
343 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ 345 T(NotIsvar, "builtin %%IS_VAR: not a variable") \
344 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ 346 T(ParamAfterRest, "Rest parameter must be last formal parameter") \
345 T(PushPastSafeLength, \ 347 T(PushPastSafeLength, \
346 "Pushing % elements on an array-like of length % " \ 348 "Pushing % elements on an array-like of length % " \
347 "is disallowed, as the total surpasses 2**53-1") \ 349 "is disallowed, as the total surpasses 2**53-1") \
350 T(ElementAfterRest, "Rest element must be last element in array") \
348 T(BadSetterRestParameter, \ 351 T(BadSetterRestParameter, \
349 "Setter function argument must not be a rest parameter") \ 352 "Setter function argument must not be a rest parameter") \
350 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 353 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
351 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ 354 T(ParenthesisInArgString, "Function arg string contains parenthesis") \
352 T(SingleFunctionLiteral, "Single function literal required") \ 355 T(SingleFunctionLiteral, "Single function literal required") \
353 T(SloppyLexical, \ 356 T(SloppyLexical, \
354 "Block-scoped declarations (let, const, function, class) not yet " \ 357 "Block-scoped declarations (let, const, function, class) not yet " \
355 "supported outside strict mode") \ 358 "supported outside strict mode") \
356 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 359 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
357 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 360 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
513 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 516 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
514 Isolate* isolate, LookupIterator* property_lookup, 517 Isolate* isolate, LookupIterator* property_lookup,
515 Handle<String> default_value); 518 Handle<String> default_value);
516 519
517 List<Handle<JSObject> > visited_; 520 List<Handle<JSObject> > visited_;
518 }; 521 };
519 } // namespace internal 522 } // namespace internal
520 } // namespace v8 523 } // namespace v8
521 524
522 #endif // V8_MESSAGES_H_ 525 #endif // V8_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698