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

Side by Side Diff: src/messages.h

Issue 1928203002: [es8] More spec compliant syntactic tail calls implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 7 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 | « no previous file | src/parsing/expression-classifier.h » ('j') | src/parsing/parser-base.h » ('J')
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 T(ConstructorNotFunction, "Constructor % requires 'new'") \ 110 T(ConstructorNotFunction, "Constructor % requires 'new'") \
111 T(ConstructorNotReceiver, "The .constructor property is not an object") \ 111 T(ConstructorNotReceiver, "The .constructor property is not an object") \
112 T(CurrencyCode, "Currency code is required with currency style.") \ 112 T(CurrencyCode, "Currency code is required with currency style.") \
113 T(DataViewNotArrayBuffer, \ 113 T(DataViewNotArrayBuffer, \
114 "First argument to DataView constructor must be an ArrayBuffer") \ 114 "First argument to DataView constructor must be an ArrayBuffer") \
115 T(DateType, "this is not a Date object.") \ 115 T(DateType, "this is not a Date object.") \
116 T(DebuggerFrame, "Debugger: Invalid frame index.") \ 116 T(DebuggerFrame, "Debugger: Invalid frame index.") \
117 T(DebuggerType, "Debugger: Parameters have wrong types.") \ 117 T(DebuggerType, "Debugger: Parameters have wrong types.") \
118 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \ 118 T(DeclarationMissingInitializer, "Missing initializer in % declaration") \
119 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \ 119 T(DefineDisallowed, "Cannot define property:%, object is not extensible.") \
120 T(DetachedOperation, \ 120 T(DetachedOperation, "Cannot perform % on a detached ArrayBuffer") \
121 "Cannot perform % on a detached ArrayBuffer") \
122 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \ 121 T(DuplicateTemplateProperty, "Object template has duplicate property '%'") \
123 T(ExtendsValueGenerator, \ 122 T(ExtendsValueGenerator, \
124 "Class extends value % may not be a generator function") \ 123 "Class extends value % may not be a generator function") \
125 T(ExtendsValueNotFunction, \ 124 T(ExtendsValueNotFunction, \
126 "Class extends value % is not a function or null") \ 125 "Class extends value % is not a function or null") \
127 T(FirstArgumentNotRegExp, \ 126 T(FirstArgumentNotRegExp, \
128 "First argument to % must not be a regular expression") \ 127 "First argument to % must not be a regular expression") \
129 T(FunctionBind, "Bind must be called on a function") \ 128 T(FunctionBind, "Bind must be called on a function") \
130 T(GeneratorRunning, "Generator is already running") \ 129 T(GeneratorRunning, "Generator is already running") \
131 T(IllegalInvocation, "Illegal invocation") \ 130 T(IllegalInvocation, "Illegal invocation") \
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 "inside a block, or as the body of an if statement.") \ 419 "inside a block, or as the body of an if statement.") \
421 T(SpeciesNotConstructor, \ 420 T(SpeciesNotConstructor, \
422 "object.constructor[Symbol.species] is not a constructor") \ 421 "object.constructor[Symbol.species] is not a constructor") \
423 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ 422 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \
424 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ 423 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \
425 T(StrictFunction, \ 424 T(StrictFunction, \
426 "In strict mode code, functions can only be declared at top level or " \ 425 "In strict mode code, functions can only be declared at top level or " \
427 "inside a block.") \ 426 "inside a block.") \
428 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \ 427 T(StrictOctalLiteral, "Octal literals are not allowed in strict mode.") \
429 T(StrictWith, "Strict mode code may not include a with statement") \ 428 T(StrictWith, "Strict mode code may not include a with statement") \
430 T(TailCallInCatchBlock, \
431 "Tail call expression in catch block when finally block is also present.") \
432 T(TailCallInForInOf, "Tail call expression in for-in/of body.") \
433 T(TailCallInTryBlock, "Tail call expression in try block.") \
434 T(TemplateOctalLiteral, \ 429 T(TemplateOctalLiteral, \
435 "Octal literals are not allowed in template strings.") \ 430 "Octal literals are not allowed in template strings.") \
436 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \ 431 T(ThisFormalParameter, "'this' is not a valid formal parameter name") \
437 T(TooManyArguments, \ 432 T(TooManyArguments, \
438 "Too many arguments in function call (only 65535 allowed)") \ 433 "Too many arguments in function call (only 65535 allowed)") \
439 T(TooManyParameters, \ 434 T(TooManyParameters, \
440 "Too many parameters in function definition (only 65535 allowed)") \ 435 "Too many parameters in function definition (only 65535 allowed)") \
441 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \ 436 T(TooManyVariables, "Too many variables declared (only 4194303 allowed)") \
442 T(TypedArrayTooShort, \ 437 T(TypedArrayTooShort, \
443 "Derived TypedArray constructor created an array which was too small") \ 438 "Derived TypedArray constructor created an array which was too small") \
444 T(UnexpectedEOS, "Unexpected end of input") \ 439 T(UnexpectedEOS, "Unexpected end of input") \
445 T(UnexpectedFunctionSent, \ 440 T(UnexpectedFunctionSent, \
446 "function.sent expression is not allowed outside a generator") \ 441 "function.sent expression is not allowed outside a generator") \
442 T(UnexpectedInsideTailCall, "Unexpected expression inside tail call") \
447 T(UnexpectedReserved, "Unexpected reserved word") \ 443 T(UnexpectedReserved, "Unexpected reserved word") \
448 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ 444 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \
449 T(UnexpectedSuper, "'super' keyword unexpected here") \ 445 T(UnexpectedSuper, "'super' keyword unexpected here") \
450 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ 446 T(UnexpectedNewTarget, "new.target expression is not allowed here") \
447 T(UnexpectedTailCall, "Tail call expression is not allowed here") \
448 T(UnexpectedTailCallInCatchBlock, \
449 "Tail call expression in catch block when finally block is also present") \
450 T(UnexpectedTailCallInForInOf, "Tail call expression in for-in/of body") \
451 T(UnexpectedTailCallInTryBlock, "Tail call expression in try block") \
451 T(UnexpectedTemplateString, "Unexpected template string") \ 452 T(UnexpectedTemplateString, "Unexpected template string") \
452 T(UnexpectedToken, "Unexpected token %") \ 453 T(UnexpectedToken, "Unexpected token %") \
453 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ 454 T(UnexpectedTokenIdentifier, "Unexpected identifier") \
454 T(UnexpectedTokenNumber, "Unexpected number") \ 455 T(UnexpectedTokenNumber, "Unexpected number") \
455 T(UnexpectedTokenString, "Unexpected string") \ 456 T(UnexpectedTokenString, "Unexpected string") \
456 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ 457 T(UnexpectedTokenRegExp, "Unexpected regular expression") \
457 T(UnknownLabel, "Undefined label '%'") \ 458 T(UnknownLabel, "Undefined label '%'") \
458 T(UnterminatedArgList, "missing ) after argument list") \ 459 T(UnterminatedArgList, "missing ) after argument list") \
459 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ 460 T(UnterminatedRegExp, "Invalid regular expression: missing /") \
460 T(UnterminatedTemplate, "Unterminated template literal") \ 461 T(UnterminatedTemplate, "Unterminated template literal") \
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 518 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
518 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 519 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
519 Handle<Object> data); 520 Handle<Object> data);
520 }; 521 };
521 522
522 523
523 } // namespace internal 524 } // namespace internal
524 } // namespace v8 525 } // namespace v8
525 526
526 #endif // V8_MESSAGES_H_ 527 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/parsing/expression-classifier.h » ('j') | src/parsing/parser-base.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698