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

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: An implementation Created 5 years, 1 month 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 295 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 "Invalid left-hand side in % loop: Must have a single binding.") \ 306 "Invalid left-hand side in % loop: Must have a single binding.") \
307 T(ForOfLoopInitializer, \ 307 T(ForOfLoopInitializer, \
308 "for-of loop variable declaration may not have an initializer.") \ 308 "for-of loop variable declaration may not have an initializer.") \
309 T(IllegalAccess, "Illegal access") \ 309 T(IllegalAccess, "Illegal access") \
310 T(IllegalBreak, "Illegal break statement") \ 310 T(IllegalBreak, "Illegal break statement") \
311 T(IllegalContinue, "Illegal continue statement") \ 311 T(IllegalContinue, "Illegal continue statement") \
312 T(IllegalLanguageModeDirective, \ 312 T(IllegalLanguageModeDirective, \
313 "Illegal '%' directive in function with non-simple parameter list") \ 313 "Illegal '%' directive in function with non-simple parameter list") \
314 T(IllegalReturn, "Illegal return statement") \ 314 T(IllegalReturn, "Illegal return statement") \
315 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \ 315 T(InvalidLhsInAssignment, "Invalid left-hand side in assignment") \
316 T(InvalidCoverInitializedName, "Invalid shorthand property initializer") \
317 T(InvalidDestructuringTarget, "Invalid destructuring assignment target") \
316 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \ 318 T(InvalidLhsInFor, "Invalid left-hand side in for-loop") \
317 T(InvalidLhsInPostfixOp, \ 319 T(InvalidLhsInPostfixOp, \
318 "Invalid left-hand side expression in postfix operation") \ 320 "Invalid left-hand side expression in postfix operation") \
319 T(InvalidLhsInPrefixOp, \ 321 T(InvalidLhsInPrefixOp, \
320 "Invalid left-hand side expression in prefix operation") \ 322 "Invalid left-hand side expression in prefix operation") \
321 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \ 323 T(InvalidRegExpFlags, "Invalid flags supplied to RegExp constructor '%'") \
322 T(LabelRedeclaration, "Label '%' has already been declared") \ 324 T(LabelRedeclaration, "Label '%' has already been declared") \
323 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ 325 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \
324 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ 326 T(MalformedRegExp, "Invalid regular expression: /%/: %") \
325 T(MalformedRegExpFlags, "Invalid regular expression flags") \ 327 T(MalformedRegExpFlags, "Invalid regular expression flags") \
326 T(ModuleExportUndefined, "Export '%' is not defined in module") \ 328 T(ModuleExportUndefined, "Export '%' is not defined in module") \
327 T(MultipleDefaultsInSwitch, \ 329 T(MultipleDefaultsInSwitch, \
328 "More than one default clause in switch statement") \ 330 "More than one default clause in switch statement") \
329 T(NewlineAfterThrow, "Illegal newline after throw") \ 331 T(NewlineAfterThrow, "Illegal newline after throw") \
330 T(NoCatchOrFinally, "Missing catch or finally after try") \ 332 T(NoCatchOrFinally, "Missing catch or finally after try") \
331 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ 333 T(NotIsvar, "builtin %%IS_VAR: not a variable") \
332 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ 334 T(ParamAfterRest, "Rest parameter must be last formal parameter") \
333 T(PushPastSafeLength, \ 335 T(PushPastSafeLength, \
334 "Pushing % elements on an array-like of length % " \ 336 "Pushing % elements on an array-like of length % " \
335 "is disallowed, as the total surpasses 2**53-1") \ 337 "is disallowed, as the total surpasses 2**53-1") \
338 T(ElementAfterRest, "Rest element must be last element in array") \
336 T(BadSetterRestParameter, \ 339 T(BadSetterRestParameter, \
337 "Setter function argument must not be a rest parameter") \ 340 "Setter function argument must not be a rest parameter") \
338 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ 341 T(ParamDupe, "Duplicate parameter name not allowed in this context") \
339 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ 342 T(ParenthesisInArgString, "Function arg string contains parenthesis") \
340 T(SingleFunctionLiteral, "Single function literal required") \ 343 T(SingleFunctionLiteral, "Single function literal required") \
341 T(SloppyLexical, \ 344 T(SloppyLexical, \
342 "Block-scoped declarations (let, const, function, class) not yet " \ 345 "Block-scoped declarations (let, const, function, class) not yet " \
343 "supported outside strict mode") \ 346 "supported outside strict mode") \
344 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 347 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
345 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 348 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 504 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
502 Isolate* isolate, LookupIterator* property_lookup, 505 Isolate* isolate, LookupIterator* property_lookup,
503 Handle<String> default_value); 506 Handle<String> default_value);
504 507
505 List<Handle<JSObject> > visited_; 508 List<Handle<JSObject> > visited_;
506 }; 509 };
507 } // namespace internal 510 } // namespace internal
508 } // namespace v8 511 } // namespace v8
509 512
510 #endif // V8_MESSAGES_H_ 513 #endif // V8_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698