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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 // the old generation). | 285 // the old generation). |
286 Handle<Struct> NewStruct(InstanceType type); | 286 Handle<Struct> NewStruct(InstanceType type); |
287 | 287 |
288 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 288 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
289 int aliased_context_slot); | 289 int aliased_context_slot); |
290 | 290 |
291 Handle<AccessorInfo> NewAccessorInfo(); | 291 Handle<AccessorInfo> NewAccessorInfo(); |
292 | 292 |
293 Handle<Script> NewScript(Handle<String> source); | 293 Handle<Script> NewScript(Handle<String> source); |
294 | 294 |
295 Handle<StackTraceFrame> NewStackTraceFrame(); | |
296 | |
297 // Foreign objects are pretenured when allocated by the bootstrapper. | 295 // Foreign objects are pretenured when allocated by the bootstrapper. |
298 Handle<Foreign> NewForeign(Address addr, | 296 Handle<Foreign> NewForeign(Address addr, |
299 PretenureFlag pretenure = NOT_TENURED); | 297 PretenureFlag pretenure = NOT_TENURED); |
300 | 298 |
301 // Allocate a new foreign object. The foreign is pretenured (allocated | 299 // Allocate a new foreign object. The foreign is pretenured (allocated |
302 // directly in the old generation). | 300 // directly in the old generation). |
303 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 301 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
304 | 302 |
305 Handle<ByteArray> NewByteArray(int length, | 303 Handle<ByteArray> NewByteArray(int length, |
306 PretenureFlag pretenure = NOT_TENURED); | 304 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 FunctionMode function_mode); | 750 FunctionMode function_mode); |
753 | 751 |
754 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 752 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
755 FunctionMode function_mode); | 753 FunctionMode function_mode); |
756 }; | 754 }; |
757 | 755 |
758 } // namespace internal | 756 } // namespace internal |
759 } // namespace v8 | 757 } // namespace v8 |
760 | 758 |
761 #endif // V8_FACTORY_H_ | 759 #endif // V8_FACTORY_H_ |
OLD | NEW |