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

Side by Side Diff: src/factory.h

Issue 1140053002: Migrate error messages, part 11. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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 | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "src/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 10
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
533 533
534 Handle<Code> CopyCode(Handle<Code> code); 534 Handle<Code> CopyCode(Handle<Code> code);
535 535
536 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); 536 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info);
537 537
538 // Interface for creating error objects. 538 // Interface for creating error objects.
539 539
540 Handle<Object> NewError(const char* maker, const char* message, 540 Handle<Object> NewError(const char* maker, const char* message,
541 Handle<JSArray> args); 541 Handle<JSArray> args);
542 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); 542 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args);
543 Handle<Object> NewError(const char* maker, const char* message,
544 Vector<Handle<Object> > args);
545 Handle<Object> NewError(const char* message, Vector<Handle<Object> > args);
546 543
547 Handle<Object> NewError(Handle<String> message);
548 Handle<Object> NewError(const char* constructor, Handle<String> message); 544 Handle<Object> NewError(const char* constructor, Handle<String> message);
549 545
550 Handle<Object> NewTypeError(Handle<String> message);
551
552 Handle<Object> NewRangeError(Handle<String> message);
553
554 Handle<Object> NewInvalidStringLengthError() { 546 Handle<Object> NewInvalidStringLengthError() {
555 return NewRangeError(MessageTemplate::kInvalidStringLength); 547 return NewRangeError(MessageTemplate::kInvalidStringLength);
556 } 548 }
557 549
558 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args);
559 Handle<Object> NewSyntaxError(Handle<String> message);
560
561 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args);
562 Handle<Object> NewReferenceError(Handle<String> message);
563
564 Handle<Object> NewError(const char* maker, 550 Handle<Object> NewError(const char* maker,
565 MessageTemplate::Template template_index, 551 MessageTemplate::Template template_index,
566 Handle<Object> arg0, Handle<Object> arg1, 552 Handle<Object> arg0, Handle<Object> arg1,
567 Handle<Object> arg2); 553 Handle<Object> arg2);
568 554
569 Handle<Object> NewError(MessageTemplate::Template template_index, 555 Handle<Object> NewError(MessageTemplate::Template template_index,
570 Handle<Object> arg0 = Handle<Object>(), 556 Handle<Object> arg0 = Handle<Object>(),
571 Handle<Object> arg1 = Handle<Object>(), 557 Handle<Object> arg1 = Handle<Object>(),
572 Handle<Object> arg2 = Handle<Object>()); 558 Handle<Object> arg2 = Handle<Object>());
573 559
574 Handle<Object> NewTypeError(MessageTemplate::Template template_index, 560 Handle<Object> NewTypeError(MessageTemplate::Template template_index,
575 Handle<Object> arg0 = Handle<Object>(), 561 Handle<Object> arg0 = Handle<Object>(),
576 Handle<Object> arg1 = Handle<Object>(), 562 Handle<Object> arg1 = Handle<Object>(),
577 Handle<Object> arg2 = Handle<Object>()); 563 Handle<Object> arg2 = Handle<Object>());
578 564
565 Handle<Object> NewSyntaxError(MessageTemplate::Template template_index,
566 Handle<Object> arg0 = Handle<Object>(),
567 Handle<Object> arg1 = Handle<Object>(),
568 Handle<Object> arg2 = Handle<Object>());
569
579 Handle<Object> NewReferenceError(MessageTemplate::Template template_index, 570 Handle<Object> NewReferenceError(MessageTemplate::Template template_index,
580 Handle<Object> arg0 = Handle<Object>(), 571 Handle<Object> arg0 = Handle<Object>(),
581 Handle<Object> arg1 = Handle<Object>(), 572 Handle<Object> arg1 = Handle<Object>(),
582 Handle<Object> arg2 = Handle<Object>()); 573 Handle<Object> arg2 = Handle<Object>());
583 574
584 Handle<Object> NewRangeError(MessageTemplate::Template template_index, 575 Handle<Object> NewRangeError(MessageTemplate::Template template_index,
585 Handle<Object> arg0 = Handle<Object>(), 576 Handle<Object> arg0 = Handle<Object>(),
586 Handle<Object> arg1 = Handle<Object>(), 577 Handle<Object> arg1 = Handle<Object>(),
587 Handle<Object> arg2 = Handle<Object>()); 578 Handle<Object> arg2 = Handle<Object>());
588 579
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
750 // Reinitialize a JSProxy into an (empty) JS object of respective type and 741 // Reinitialize a JSProxy into an (empty) JS object of respective type and
751 // size, but keeping the original prototype. The receiver must have at least 742 // size, but keeping the original prototype. The receiver must have at least
752 // the size of the new object. The object is reinitialized and behaves as an 743 // the size of the new object. The object is reinitialized and behaves as an
753 // object that has been freshly allocated. 744 // object that has been freshly allocated.
754 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 745 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
755 }; 746 };
756 747
757 } } // namespace v8::internal 748 } } // namespace v8::internal
758 749
759 #endif // V8_FACTORY_H_ 750 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698