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 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 740 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
736 // size, but keeping the original prototype. The receiver must have at least | 741 // size, but keeping the original prototype. The receiver must have at least |
737 // the size of the new object. The object is reinitialized and behaves as an | 742 // the size of the new object. The object is reinitialized and behaves as an |
738 // object that has been freshly allocated. | 743 // object that has been freshly allocated. |
739 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 744 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
740 }; | 745 }; |
741 | 746 |
742 } } // namespace v8::internal | 747 } } // namespace v8::internal |
743 | 748 |
744 #endif // V8_FACTORY_H_ | 749 #endif // V8_FACTORY_H_ |
OLD | NEW |