| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 | 263 |
| 264 // Create a block context. | 264 // Create a block context. |
| 265 Handle<Context> NewBlockContext(Handle<JSFunction> function, | 265 Handle<Context> NewBlockContext(Handle<JSFunction> function, |
| 266 Handle<Context> previous, | 266 Handle<Context> previous, |
| 267 Handle<ScopeInfo> scope_info); | 267 Handle<ScopeInfo> scope_info); |
| 268 | 268 |
| 269 // Allocate a new struct. The struct is pretenured (allocated directly in | 269 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 270 // the old generation). | 270 // the old generation). |
| 271 Handle<Struct> NewStruct(InstanceType type); | 271 Handle<Struct> NewStruct(InstanceType type); |
| 272 | 272 |
| 273 Handle<CodeCache> NewCodeCache(); | |
| 274 | |
| 275 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 273 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
| 276 int aliased_context_slot); | 274 int aliased_context_slot); |
| 277 | 275 |
| 278 Handle<AccessorInfo> NewAccessorInfo(); | 276 Handle<AccessorInfo> NewAccessorInfo(); |
| 279 | 277 |
| 280 Handle<Script> NewScript(Handle<String> source); | 278 Handle<Script> NewScript(Handle<String> source); |
| 281 | 279 |
| 282 // Foreign objects are pretenured when allocated by the bootstrapper. | 280 // Foreign objects are pretenured when allocated by the bootstrapper. |
| 283 Handle<Foreign> NewForeign(Address addr, | 281 Handle<Foreign> NewForeign(Address addr, |
| 284 PretenureFlag pretenure = NOT_TENURED); | 282 PretenureFlag pretenure = NOT_TENURED); |
| (...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 711 | 709 |
| 712 // Create a JSArray with no elements and no length. | 710 // Create a JSArray with no elements and no length. |
| 713 Handle<JSArray> NewJSArray(ElementsKind elements_kind, | 711 Handle<JSArray> NewJSArray(ElementsKind elements_kind, |
| 714 PretenureFlag pretenure = NOT_TENURED); | 712 PretenureFlag pretenure = NOT_TENURED); |
| 715 }; | 713 }; |
| 716 | 714 |
| 717 } // namespace internal | 715 } // namespace internal |
| 718 } // namespace v8 | 716 } // namespace v8 |
| 719 | 717 |
| 720 #endif // V8_FACTORY_H_ | 718 #endif // V8_FACTORY_H_ |
| OLD | NEW |