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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // because we cannot change the underlying buffer. Note that these strings | 226 // because we cannot change the underlying buffer. Note that these strings |
227 // are backed by a string resource that resides outside the V8 heap. | 227 // are backed by a string resource that resides outside the V8 heap. |
228 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromOneByte( | 228 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromOneByte( |
229 const ExternalOneByteString::Resource* resource); | 229 const ExternalOneByteString::Resource* resource); |
230 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( | 230 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( |
231 const ExternalTwoByteString::Resource* resource); | 231 const ExternalTwoByteString::Resource* resource); |
232 | 232 |
233 // Create a symbol. | 233 // Create a symbol. |
234 Handle<Symbol> NewSymbol(); | 234 Handle<Symbol> NewSymbol(); |
235 Handle<Symbol> NewPrivateSymbol(); | 235 Handle<Symbol> NewPrivateSymbol(); |
236 Handle<Symbol> NewPrivateOwnSymbol(); | 236 Handle<Symbol> NewPrivateOwnSymbol(Handle<Object> name); |
237 | 237 |
238 // Create a global (but otherwise uninitialized) context. | 238 // Create a global (but otherwise uninitialized) context. |
239 Handle<Context> NewNativeContext(); | 239 Handle<Context> NewNativeContext(); |
240 | 240 |
241 // Create a script context. | 241 // Create a script context. |
242 Handle<Context> NewScriptContext(Handle<JSFunction> function, | 242 Handle<Context> NewScriptContext(Handle<JSFunction> function, |
243 Handle<ScopeInfo> scope_info); | 243 Handle<ScopeInfo> scope_info); |
244 | 244 |
245 // Create an empty script context table. | 245 // Create an empty script context table. |
246 Handle<ScriptContextTable> NewScriptContextTable(); | 246 Handle<ScriptContextTable> NewScriptContextTable(); |
(...skipping 496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 743 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
744 // size, but keeping the original prototype. The receiver must have at least | 744 // size, but keeping the original prototype. The receiver must have at least |
745 // the size of the new object. The object is reinitialized and behaves as an | 745 // the size of the new object. The object is reinitialized and behaves as an |
746 // object that has been freshly allocated. | 746 // object that has been freshly allocated. |
747 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 747 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
748 }; | 748 }; |
749 | 749 |
750 } } // namespace v8::internal | 750 } } // namespace v8::internal |
751 | 751 |
752 #endif // V8_FACTORY_H_ | 752 #endif // V8_FACTORY_H_ |
OLD | NEW |