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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 | 47 |
48 Handle<OrderedHashSet> NewOrderedHashSet(); | 48 Handle<OrderedHashSet> NewOrderedHashSet(); |
49 Handle<OrderedHashMap> NewOrderedHashMap(); | 49 Handle<OrderedHashMap> NewOrderedHashMap(); |
50 | 50 |
51 // Create a new boxed value. | 51 // Create a new boxed value. |
52 Handle<Box> NewBox(Handle<Object> value); | 52 Handle<Box> NewBox(Handle<Object> value); |
53 | 53 |
54 // Create a new PrototypeInfo struct. | 54 // Create a new PrototypeInfo struct. |
55 Handle<PrototypeInfo> NewPrototypeInfo(); | 55 Handle<PrototypeInfo> NewPrototypeInfo(); |
56 | 56 |
| 57 // Create a new SloppyBlockWithEvalContextExtension struct. |
| 58 Handle<SloppyBlockWithEvalContextExtension> |
| 59 NewSloppyBlockWithEvalContextExtension(Handle<ScopeInfo> scope_info, |
| 60 Handle<JSObject> extension); |
| 61 |
57 // Create a pre-tenured empty AccessorPair. | 62 // Create a pre-tenured empty AccessorPair. |
58 Handle<AccessorPair> NewAccessorPair(); | 63 Handle<AccessorPair> NewAccessorPair(); |
59 | 64 |
60 // Create an empty TypeFeedbackInfo. | 65 // Create an empty TypeFeedbackInfo. |
61 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); | 66 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); |
62 | 67 |
63 // Finds the internalized copy for string in the string table. | 68 // Finds the internalized copy for string in the string table. |
64 // If not found, a new string is added to the table and returned. | 69 // If not found, a new string is added to the table and returned. |
65 Handle<String> InternalizeUtf8String(Vector<const char> str); | 70 Handle<String> InternalizeUtf8String(Vector<const char> str); |
66 Handle<String> InternalizeUtf8String(const char* str) { | 71 Handle<String> InternalizeUtf8String(const char* str) { |
(...skipping 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
723 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 728 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
724 // size, but keeping the original prototype. The receiver must have at least | 729 // size, but keeping the original prototype. The receiver must have at least |
725 // the size of the new object. The object is reinitialized and behaves as an | 730 // the size of the new object. The object is reinitialized and behaves as an |
726 // object that has been freshly allocated. | 731 // object that has been freshly allocated. |
727 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 732 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
728 }; | 733 }; |
729 | 734 |
730 } } // namespace v8::internal | 735 } } // namespace v8::internal |
731 | 736 |
732 #endif // V8_FACTORY_H_ | 737 #endif // V8_FACTORY_H_ |
OLD | NEW |