| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 Handle<Code> CopyCode(Handle<Code> code); | 544 Handle<Code> CopyCode(Handle<Code> code); |
| 545 | 545 |
| 546 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); | 546 Handle<Code> CopyCode(Handle<Code> code, Vector<byte> reloc_info); |
| 547 | 547 |
| 548 // Interface for creating error objects. | 548 // Interface for creating error objects. |
| 549 | 549 |
| 550 Handle<Object> NewError(const char* maker, const char* message, | 550 Handle<Object> NewError(const char* maker, const char* message, |
| 551 Handle<JSArray> args); | 551 Handle<JSArray> args); |
| 552 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); | 552 Handle<String> EmergencyNewError(const char* message, Handle<JSArray> args); |
| 553 | 553 |
| 554 Handle<Object> NewError(const char* constructor, Handle<String> message); | 554 Handle<Object> NewError(Handle<JSFunction> constructor, |
| 555 Handle<String> message); |
| 555 | 556 |
| 556 Handle<Object> NewInvalidStringLengthError() { | 557 Handle<Object> NewInvalidStringLengthError() { |
| 557 return NewRangeError(MessageTemplate::kInvalidStringLength); | 558 return NewRangeError(MessageTemplate::kInvalidStringLength); |
| 558 } | 559 } |
| 559 | 560 |
| 560 Handle<Object> NewError(const char* maker, | 561 Handle<Object> NewError(const char* maker, |
| 561 MessageTemplate::Template template_index, | 562 MessageTemplate::Template template_index, |
| 562 Handle<Object> arg0 = Handle<Object>(), | 563 Handle<Object> arg0 = Handle<Object>(), |
| 563 Handle<Object> arg1 = Handle<Object>(), | 564 Handle<Object> arg1 = Handle<Object>(), |
| 564 Handle<Object> arg2 = Handle<Object>()); | 565 Handle<Object> arg2 = Handle<Object>()); |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 753 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 753 // size, but keeping the original prototype. The receiver must have at least | 754 // size, but keeping the original prototype. The receiver must have at least |
| 754 // the size of the new object. The object is reinitialized and behaves as an | 755 // the size of the new object. The object is reinitialized and behaves as an |
| 755 // object that has been freshly allocated. | 756 // object that has been freshly allocated. |
| 756 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 757 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 757 }; | 758 }; |
| 758 | 759 |
| 759 } } // namespace v8::internal | 760 } } // namespace v8::internal |
| 760 | 761 |
| 761 #endif // V8_FACTORY_H_ | 762 #endif // V8_FACTORY_H_ |
| OLD | NEW |