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 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 Handle<Object> New##NAME(MessageTemplate::Template template_index, \ | 627 Handle<Object> New##NAME(MessageTemplate::Template template_index, \ |
628 Handle<Object> arg0 = Handle<Object>(), \ | 628 Handle<Object> arg0 = Handle<Object>(), \ |
629 Handle<Object> arg1 = Handle<Object>(), \ | 629 Handle<Object> arg1 = Handle<Object>(), \ |
630 Handle<Object> arg2 = Handle<Object>()); | 630 Handle<Object> arg2 = Handle<Object>()); |
631 DECLARE_ERROR(Error) | 631 DECLARE_ERROR(Error) |
632 DECLARE_ERROR(EvalError) | 632 DECLARE_ERROR(EvalError) |
633 DECLARE_ERROR(RangeError) | 633 DECLARE_ERROR(RangeError) |
634 DECLARE_ERROR(ReferenceError) | 634 DECLARE_ERROR(ReferenceError) |
635 DECLARE_ERROR(SyntaxError) | 635 DECLARE_ERROR(SyntaxError) |
636 DECLARE_ERROR(TypeError) | 636 DECLARE_ERROR(TypeError) |
| 637 DECLARE_ERROR(WasmCompileError) |
| 638 DECLARE_ERROR(WasmRuntimeError) |
637 #undef DEFINE_ERROR | 639 #undef DEFINE_ERROR |
638 | 640 |
639 Handle<String> NumberToString(Handle<Object> number, | 641 Handle<String> NumberToString(Handle<Object> number, |
640 bool check_number_string_cache = true); | 642 bool check_number_string_cache = true); |
641 | 643 |
642 Handle<String> Uint32ToString(uint32_t value) { | 644 Handle<String> Uint32ToString(uint32_t value) { |
643 return NumberToString(NewNumberFromUint(value)); | 645 return NumberToString(NewNumberFromUint(value)); |
644 } | 646 } |
645 | 647 |
646 Handle<JSFunction> InstallMembers(Handle<JSFunction> function); | 648 Handle<JSFunction> InstallMembers(Handle<JSFunction> function); |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 FunctionMode function_mode); | 784 FunctionMode function_mode); |
783 | 785 |
784 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 786 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
785 FunctionMode function_mode); | 787 FunctionMode function_mode); |
786 }; | 788 }; |
787 | 789 |
788 } // namespace internal | 790 } // namespace internal |
789 } // namespace v8 | 791 } // namespace v8 |
790 | 792 |
791 #endif // V8_FACTORY_H_ | 793 #endif // V8_FACTORY_H_ |
OLD | NEW |