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

Side by Side Diff: src/factory.h

Issue 1130783002: Migrate error messages, part 9. (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/accessors.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 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 Vector<Handle<Object> > args); 555 Vector<Handle<Object> > args);
556 Handle<Object> NewRangeError(Handle<String> message); 556 Handle<Object> NewRangeError(Handle<String> message);
557 557
558 Handle<Object> NewInvalidStringLengthError() { 558 Handle<Object> NewInvalidStringLengthError() {
559 return NewRangeError(MessageTemplate::kInvalidStringLength); 559 return NewRangeError(MessageTemplate::kInvalidStringLength);
560 } 560 }
561 561
562 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); 562 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args);
563 Handle<Object> NewSyntaxError(Handle<String> message); 563 Handle<Object> NewSyntaxError(Handle<String> message);
564 564
565 Handle<Object> NewReferenceError(const char* message,
566 Vector<Handle<Object> > args);
567 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); 565 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args);
568 Handle<Object> NewReferenceError(Handle<String> message); 566 Handle<Object> NewReferenceError(Handle<String> message);
569 567
570 Handle<Object> NewEvalError(const char* message,
571 Vector<Handle<Object> > args);
572
573 Handle<Object> NewError(const char* maker, 568 Handle<Object> NewError(const char* maker,
574 MessageTemplate::Template template_index, 569 MessageTemplate::Template template_index,
575 Handle<Object> arg0, Handle<Object> arg1, 570 Handle<Object> arg0, Handle<Object> arg1,
576 Handle<Object> arg2); 571 Handle<Object> arg2);
577 572
578 Handle<Object> NewError(MessageTemplate::Template template_index, 573 Handle<Object> NewError(MessageTemplate::Template template_index,
579 Handle<Object> arg0 = Handle<Object>(), 574 Handle<Object> arg0 = Handle<Object>(),
580 Handle<Object> arg1 = Handle<Object>(), 575 Handle<Object> arg1 = Handle<Object>(),
581 Handle<Object> arg2 = Handle<Object>()); 576 Handle<Object> arg2 = Handle<Object>());
582 577
583 Handle<Object> NewTypeError(MessageTemplate::Template template_index, 578 Handle<Object> NewTypeError(MessageTemplate::Template template_index,
584 Handle<Object> arg0 = Handle<Object>(), 579 Handle<Object> arg0 = Handle<Object>(),
585 Handle<Object> arg1 = Handle<Object>(), 580 Handle<Object> arg1 = Handle<Object>(),
586 Handle<Object> arg2 = Handle<Object>()); 581 Handle<Object> arg2 = Handle<Object>());
587 582
583 Handle<Object> NewReferenceError(MessageTemplate::Template template_index,
584 Handle<Object> arg0 = Handle<Object>(),
585 Handle<Object> arg1 = Handle<Object>(),
586 Handle<Object> arg2 = Handle<Object>());
587
588 Handle<Object> NewRangeError(MessageTemplate::Template template_index, 588 Handle<Object> NewRangeError(MessageTemplate::Template template_index,
589 Handle<Object> arg0 = Handle<Object>(), 589 Handle<Object> arg0 = Handle<Object>(),
590 Handle<Object> arg1 = Handle<Object>(), 590 Handle<Object> arg1 = Handle<Object>(),
591 Handle<Object> arg2 = Handle<Object>()); 591 Handle<Object> arg2 = Handle<Object>());
592 592
593 Handle<Object> NewEvalError(MessageTemplate::Template template_index, 593 Handle<Object> NewEvalError(MessageTemplate::Template template_index,
594 Handle<Object> arg0 = Handle<Object>(), 594 Handle<Object> arg0 = Handle<Object>(),
595 Handle<Object> arg1 = Handle<Object>(), 595 Handle<Object> arg1 = Handle<Object>(),
596 Handle<Object> arg2 = Handle<Object>()); 596 Handle<Object> arg2 = Handle<Object>());
597 597
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 // Reinitialize a JSProxy into an (empty) JS object of respective type and 754 // Reinitialize a JSProxy into an (empty) JS object of respective type and
755 // size, but keeping the original prototype. The receiver must have at least 755 // size, but keeping the original prototype. The receiver must have at least
756 // the size of the new object. The object is reinitialized and behaves as an 756 // the size of the new object. The object is reinitialized and behaves as an
757 // object that has been freshly allocated. 757 // object that has been freshly allocated.
758 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 758 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
759 }; 759 };
760 760
761 } } // namespace v8::internal 761 } } // namespace v8::internal
762 762
763 #endif // V8_FACTORY_H_ 763 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/accessors.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698