| OLD | NEW |
| 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 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 543 Handle<Object> NewError(const char* maker, const char* message, |
| 544 Vector<Handle<Object> > args); | 544 Vector<Handle<Object> > args); |
| 545 Handle<Object> NewError(const char* message, Vector<Handle<Object> > args); | 545 Handle<Object> NewError(const char* message, Vector<Handle<Object> > args); |
| 546 | 546 |
| 547 Handle<Object> NewError(Handle<String> message); | 547 Handle<Object> NewError(Handle<String> message); |
| 548 Handle<Object> NewError(const char* constructor, Handle<String> message); | 548 Handle<Object> NewError(const char* constructor, Handle<String> message); |
| 549 | 549 |
| 550 Handle<Object> NewTypeError(const char* message, | |
| 551 Vector<Handle<Object> > args); | |
| 552 Handle<Object> NewTypeError(Handle<String> message); | 550 Handle<Object> NewTypeError(Handle<String> message); |
| 553 | 551 |
| 554 Handle<Object> NewRangeError(const char* message, | |
| 555 Vector<Handle<Object> > args); | |
| 556 Handle<Object> NewRangeError(Handle<String> message); | 552 Handle<Object> NewRangeError(Handle<String> message); |
| 557 | 553 |
| 558 Handle<Object> NewInvalidStringLengthError() { | 554 Handle<Object> NewInvalidStringLengthError() { |
| 559 return NewRangeError(MessageTemplate::kInvalidStringLength); | 555 return NewRangeError(MessageTemplate::kInvalidStringLength); |
| 560 } | 556 } |
| 561 | 557 |
| 562 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); | 558 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
| 563 Handle<Object> NewSyntaxError(Handle<String> message); | 559 Handle<Object> NewSyntaxError(Handle<String> message); |
| 564 | 560 |
| 565 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); | 561 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 750 // 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 | 751 // 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 | 752 // the size of the new object. The object is reinitialized and behaves as an |
| 757 // object that has been freshly allocated. | 753 // object that has been freshly allocated. |
| 758 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 754 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 759 }; | 755 }; |
| 760 | 756 |
| 761 } } // namespace v8::internal | 757 } } // namespace v8::internal |
| 762 | 758 |
| 763 #endif // V8_FACTORY_H_ | 759 #endif // V8_FACTORY_H_ |
| OLD | NEW |