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

Side by Side Diff: src/messages.h

Issue 1692713005: ES6: Desugaring of instanceof to support @@hasInstance (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@blah
Patch Set: Fixed todos. Created 4 years, 10 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
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 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 T(UnexpectedToken, "Unexpected token %") \ 511 T(UnexpectedToken, "Unexpected token %") \
512 T(UnexpectedTokenIdentifier, "Unexpected identifier") \ 512 T(UnexpectedTokenIdentifier, "Unexpected identifier") \
513 T(UnexpectedTokenNumber, "Unexpected number") \ 513 T(UnexpectedTokenNumber, "Unexpected number") \
514 T(UnexpectedTokenString, "Unexpected string") \ 514 T(UnexpectedTokenString, "Unexpected string") \
515 T(UnexpectedTokenRegExp, "Unexpected regular expression") \ 515 T(UnexpectedTokenRegExp, "Unexpected regular expression") \
516 T(UnknownLabel, "Undefined label '%'") \ 516 T(UnknownLabel, "Undefined label '%'") \
517 T(UnterminatedArgList, "missing ) after argument list") \ 517 T(UnterminatedArgList, "missing ) after argument list") \
518 T(UnterminatedRegExp, "Invalid regular expression: missing /") \ 518 T(UnterminatedRegExp, "Invalid regular expression: missing /") \
519 T(UnterminatedTemplate, "Unterminated template literal") \ 519 T(UnterminatedTemplate, "Unterminated template literal") \
520 T(UnterminatedTemplateExpr, "Missing } in template expression") \ 520 T(UnterminatedTemplateExpr, "Missing } in template expression") \
521 T(FoundNonCallableHasInstance, "Found non-callable @@hasInstance") \
522 T(NonObjectInInstanceOfCheck, "Expecting an object in instanceof check") \
521 /* EvalError */ \ 523 /* EvalError */ \
522 T(CodeGenFromStrings, "%") \ 524 T(CodeGenFromStrings, "%") \
523 /* URIError */ \ 525 /* URIError */ \
524 T(URIMalformed, "URI malformed") 526 T(URIMalformed, "URI malformed")
525 527
526 class MessageTemplate { 528 class MessageTemplate {
527 public: 529 public:
528 enum Template { 530 enum Template {
529 #define TEMPLATE(NAME, STRING) k##NAME, 531 #define TEMPLATE(NAME, STRING) k##NAME,
530 MESSAGE_TEMPLATES(TEMPLATE) 532 MESSAGE_TEMPLATES(TEMPLATE)
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 565 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
564 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 566 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
565 Handle<Object> data); 567 Handle<Object> data);
566 }; 568 };
567 569
568 570
569 } // namespace internal 571 } // namespace internal
570 } // namespace v8 572 } // namespace v8
571 573
572 #endif // V8_MESSAGES_H_ 574 #endif // V8_MESSAGES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698