| 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/globals.h" | 8 #include "src/globals.h" |
| 9 #include "src/isolate.h" | 9 #include "src/isolate.h" |
| 10 #include "src/messages.h" | 10 #include "src/messages.h" |
| (...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 319 // the old generation). | 319 // the old generation). |
| 320 Handle<Struct> NewStruct(InstanceType type); | 320 Handle<Struct> NewStruct(InstanceType type); |
| 321 | 321 |
| 322 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( | 322 Handle<AliasedArgumentsEntry> NewAliasedArgumentsEntry( |
| 323 int aliased_context_slot); | 323 int aliased_context_slot); |
| 324 | 324 |
| 325 Handle<AccessorInfo> NewAccessorInfo(); | 325 Handle<AccessorInfo> NewAccessorInfo(); |
| 326 | 326 |
| 327 Handle<Script> NewScript(Handle<String> source); | 327 Handle<Script> NewScript(Handle<String> source); |
| 328 | 328 |
| 329 Handle<BreakPointInfo> NewBreakPointInfo(int source_position); |
| 330 |
| 329 // Foreign objects are pretenured when allocated by the bootstrapper. | 331 // Foreign objects are pretenured when allocated by the bootstrapper. |
| 330 Handle<Foreign> NewForeign(Address addr, | 332 Handle<Foreign> NewForeign(Address addr, |
| 331 PretenureFlag pretenure = NOT_TENURED); | 333 PretenureFlag pretenure = NOT_TENURED); |
| 332 | 334 |
| 333 // Allocate a new foreign object. The foreign is pretenured (allocated | 335 // Allocate a new foreign object. The foreign is pretenured (allocated |
| 334 // directly in the old generation). | 336 // directly in the old generation). |
| 335 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 337 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
| 336 | 338 |
| 337 Handle<ByteArray> NewByteArray(int length, | 339 Handle<ByteArray> NewByteArray(int length, |
| 338 PretenureFlag pretenure = NOT_TENURED); | 340 PretenureFlag pretenure = NOT_TENURED); |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 809 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, | 811 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, |
| 810 FunctionMode function_mode); | 812 FunctionMode function_mode); |
| 811 | 813 |
| 812 void SetClassFunctionInstanceDescriptor(Handle<Map> map); | 814 void SetClassFunctionInstanceDescriptor(Handle<Map> map); |
| 813 }; | 815 }; |
| 814 | 816 |
| 815 } // namespace internal | 817 } // namespace internal |
| 816 } // namespace v8 | 818 } // namespace v8 |
| 817 | 819 |
| 818 #endif // V8_FACTORY_H_ | 820 #endif // V8_FACTORY_H_ |
| OLD | NEW |