| 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 Handle<FrameArray> NewFrameArray(int number_of_frames, | 55 Handle<FrameArray> NewFrameArray(int number_of_frames, |
| 56 PretenureFlag pretenure = NOT_TENURED); | 56 PretenureFlag pretenure = NOT_TENURED); |
| 57 | 57 |
| 58 Handle<OrderedHashSet> NewOrderedHashSet(); | 58 Handle<OrderedHashSet> NewOrderedHashSet(); |
| 59 Handle<OrderedHashMap> NewOrderedHashMap(); | 59 Handle<OrderedHashMap> NewOrderedHashMap(); |
| 60 | 60 |
| 61 // Create a new boxed value. | 61 // Create a new boxed value. |
| 62 Handle<Box> NewBox(Handle<Object> value); | 62 Handle<Box> NewBox(Handle<Object> value); |
| 63 | 63 |
| 64 // Create a new PromiseContainer struct. |
| 65 Handle<PromiseContainer> NewPromiseContainer( |
| 66 Handle<JSObject> promise, Handle<JSObject> thenable, |
| 67 Handle<JSFunction> then, Handle<JSFunction> resolve, |
| 68 Handle<JSFunction> reject, Handle<Object> before_debug_event, |
| 69 Handle<Object> after_debug_event); |
| 70 |
| 64 // Create a new PrototypeInfo struct. | 71 // Create a new PrototypeInfo struct. |
| 65 Handle<PrototypeInfo> NewPrototypeInfo(); | 72 Handle<PrototypeInfo> NewPrototypeInfo(); |
| 66 | 73 |
| 67 // Create a new ContextExtension struct. | 74 // Create a new ContextExtension struct. |
| 68 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info, | 75 Handle<ContextExtension> NewContextExtension(Handle<ScopeInfo> scope_info, |
| 69 Handle<Object> extension); | 76 Handle<Object> extension); |
| 70 | 77 |
| 71 // Create a pre-tenured empty AccessorPair. | 78 // Create a pre-tenured empty AccessorPair. |
| 72 Handle<AccessorPair> NewAccessorPair(); | 79 Handle<AccessorPair> NewAccessorPair(); |
| 73 | 80 |
| (...skipping 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 757 FunctionMode function_mode); | 764 FunctionMode function_mode); |
| 758 | 765 |
| 759 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 766 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 760 FunctionMode function_mode); | 767 FunctionMode function_mode); |
| 761 }; | 768 }; |
| 762 | 769 |
| 763 } // namespace internal | 770 } // namespace internal |
| 764 } // namespace v8 | 771 } // namespace v8 |
| 765 | 772 |
| 766 #endif // V8_FACTORY_H_ | 773 #endif // V8_FACTORY_H_ |
| OLD | NEW |