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 |
295 // Foreign objects are pretenured when allocated by the bootstrapper. | 297 // Foreign objects are pretenured when allocated by the bootstrapper. |
296 Handle<Foreign> NewForeign(Address addr, | 298 Handle<Foreign> NewForeign(Address addr, |
297 PretenureFlag pretenure = NOT_TENURED); | 299 PretenureFlag pretenure = NOT_TENURED); |
298 | 300 |
299 // Allocate a new foreign object. The foreign is pretenured (allocated | 301 // Allocate a new foreign object. The foreign is pretenured (allocated |
300 // directly in the old generation). | 302 // directly in the old generation). |
301 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 303 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
302 | 304 |
303 Handle<ByteArray> NewByteArray(int length, | 305 Handle<ByteArray> NewByteArray(int length, |
304 PretenureFlag pretenure = NOT_TENURED); | 306 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 FunctionMode function_mode); | 752 FunctionMode function_mode); |
751 | 753 |
752 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 754 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
753 FunctionMode function_mode); | 755 FunctionMode function_mode); |
754 }; | 756 }; |
755 | 757 |
756 } // namespace internal | 758 } // namespace internal |
757 } // namespace v8 | 759 } // namespace v8 |
758 | 760 |
759 #endif // V8_FACTORY_H_ | 761 #endif // V8_FACTORY_H_ |
OLD | NEW |