| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 // Allocate a new struct. The struct is pretenured (allocated directly in | 256 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 257 // the old generation). | 257 // the old generation). |
| 258 Handle<Struct> NewStruct(InstanceType type); | 258 Handle<Struct> NewStruct(InstanceType type); |
| 259 | 259 |
| 260 Handle<CodeCache> NewCodeCache(); | 260 Handle<CodeCache> NewCodeCache(); |
| 261 | 261 |
| 262 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 262 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
| 263 int aliased_context_slot); | 263 int aliased_context_slot); |
| 264 | 264 |
| 265 Handle<ExecutableAccessorInfo> NewExecutableAccessorInfo(); | 265 Handle<AccessorInfo> NewAccessorInfo(); |
| 266 | 266 |
| 267 Handle<Script> NewScript(Handle<String> source); | 267 Handle<Script> NewScript(Handle<String> source); |
| 268 | 268 |
| 269 // Foreign objects are pretenured when allocated by the bootstrapper. | 269 // Foreign objects are pretenured when allocated by the bootstrapper. |
| 270 Handle<Foreign> NewForeign(Address addr, | 270 Handle<Foreign> NewForeign(Address addr, |
| 271 PretenureFlag pretenure = NOT_TENURED); | 271 PretenureFlag pretenure = NOT_TENURED); |
| 272 | 272 |
| 273 // Allocate a new foreign object. The foreign is pretenured (allocated | 273 // Allocate a new foreign object. The foreign is pretenured (allocated |
| 274 // directly in the old generation). | 274 // directly in the old generation). |
| 275 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 275 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 703 Handle<JSFunction> NewFunction(Handle<Map> map, | 703 Handle<JSFunction> NewFunction(Handle<Map> map, |
| 704 Handle<SharedFunctionInfo> info, | 704 Handle<SharedFunctionInfo> info, |
| 705 Handle<Context> context, | 705 Handle<Context> context, |
| 706 PretenureFlag pretenure = TENURED); | 706 PretenureFlag pretenure = TENURED); |
| 707 }; | 707 }; |
| 708 | 708 |
| 709 } // namespace internal | 709 } // namespace internal |
| 710 } // namespace v8 | 710 } // namespace v8 |
| 711 | 711 |
| 712 #endif // V8_FACTORY_H_ | 712 #endif // V8_FACTORY_H_ |
| OLD | NEW |