OLD | NEW |
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 T(UnexpectedEOS, "Unexpected end of input") \ | 404 T(UnexpectedEOS, "Unexpected end of input") \ |
405 T(UnexpectedReserved, "Unexpected reserved word") \ | 405 T(UnexpectedReserved, "Unexpected reserved word") \ |
406 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ | 406 T(UnexpectedStrictReserved, "Unexpected strict mode reserved word") \ |
407 T(UnexpectedSuper, "'super' keyword unexpected here") \ | 407 T(UnexpectedSuper, "'super' keyword unexpected here") \ |
408 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ | 408 T(UnexpectedNewTarget, "new.target expression is not allowed here") \ |
409 T(UnexpectedTemplateString, "Unexpected template string") \ | 409 T(UnexpectedTemplateString, "Unexpected template string") \ |
410 T(UnexpectedToken, "Unexpected token %") \ | 410 T(UnexpectedToken, "Unexpected token %") \ |
411 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ | 411 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ |
412 T(UnexpectedTokenNumber, "Unexpected number") \ | 412 T(UnexpectedTokenNumber, "Unexpected number") \ |
413 T(UnexpectedTokenString, "Unexpected string") \ | 413 T(UnexpectedTokenString, "Unexpected string") \ |
| 414 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ |
414 T(UnknownLabel, "Undefined label '%'") \ | 415 T(UnknownLabel, "Undefined label '%'") \ |
415 T(UnterminatedArgList, "missing ) after argument list") \ | 416 T(UnterminatedArgList, "missing ) after argument list") \ |
416 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ | 417 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ |
417 T(UnterminatedTemplate, "Unterminated template literal") \ | 418 T(UnterminatedTemplate, "Unterminated template literal") \ |
418 T(UnterminatedTemplateExpr, "Missing } in template expression") \ | 419 T(UnterminatedTemplateExpr, "Missing } in template expression") \ |
419 /* EvalError */ \ | 420 /* EvalError */ \ |
420 T(CodeGenFromStrings, "%") \ | 421 T(CodeGenFromStrings, "%") \ |
421 /* URIError */ \ | 422 /* URIError */ \ |
422 T(URIMalformed, "URI malformed") | 423 T(URIMalformed, "URI malformed") |
423 | 424 |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 | 456 |
456 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, | 457 static void DefaultMessageReport(Isolate* isolate, const MessageLocation* loc, |
457 Handle<Object> message_obj); | 458 Handle<Object> message_obj); |
458 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); | 459 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); |
459 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, | 460 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, |
460 Handle<Object> data); | 461 Handle<Object> data); |
461 }; | 462 }; |
462 } } // namespace v8::internal | 463 } } // namespace v8::internal |
463 | 464 |
464 #endif // V8_MESSAGES_H_ | 465 #endif // V8_MESSAGES_H_ |
OLD | NEW |