| 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); |
| 550 Handle<Object> NewTypeError(Handle<String> message); | 552 Handle<Object> NewTypeError(Handle<String> message); |
| 551 | 553 |
| 554 Handle<Object> NewRangeError(const char* message, |
| 555 Vector<Handle<Object> > args); |
| 552 Handle<Object> NewRangeError(Handle<String> message); | 556 Handle<Object> NewRangeError(Handle<String> message); |
| 553 | 557 |
| 554 Handle<Object> NewInvalidStringLengthError() { | 558 Handle<Object> NewInvalidStringLengthError() { |
| 555 return NewRangeError(MessageTemplate::kInvalidStringLength); | 559 return NewRangeError(MessageTemplate::kInvalidStringLength); |
| 556 } | 560 } |
| 557 | 561 |
| 558 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); | 562 Handle<Object> NewSyntaxError(const char* message, Handle<JSArray> args); |
| 559 Handle<Object> NewSyntaxError(Handle<String> message); | 563 Handle<Object> NewSyntaxError(Handle<String> message); |
| 560 | 564 |
| 561 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); | 565 Handle<Object> NewReferenceError(const char* message, Handle<JSArray> args); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 750 // 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 |
| 751 // 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 |
| 752 // 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 |
| 753 // object that has been freshly allocated. | 757 // object that has been freshly allocated. |
| 754 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 758 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 755 }; | 759 }; |
| 756 | 760 |
| 757 } } // namespace v8::internal | 761 } } // namespace v8::internal |
| 758 | 762 |
| 759 #endif // V8_FACTORY_H_ | 763 #endif // V8_FACTORY_H_ |
| OLD | NEW |