| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 Handle<Context> previous, | 195 Handle<Context> previous, |
| 196 Handle<ScopeInfo> scope_info); | 196 Handle<ScopeInfo> scope_info); |
| 197 | 197 |
| 198 // Return the Symbol matching the passed in string. | 198 // Return the Symbol matching the passed in string. |
| 199 Handle<String> SymbolFromString(Handle<String> value); | 199 Handle<String> SymbolFromString(Handle<String> value); |
| 200 | 200 |
| 201 // Allocate a new struct. The struct is pretenured (allocated directly in | 201 // Allocate a new struct. The struct is pretenured (allocated directly in |
| 202 // the old generation). | 202 // the old generation). |
| 203 Handle<Struct> NewStruct(InstanceType type); | 203 Handle<Struct> NewStruct(InstanceType type); |
| 204 | 204 |
| 205 Handle<AccessorInfo> NewAccessorInfo(); | 205 Handle<DeclaredAccessorInfo> NewDeclaredAccessorInfo(); |
| 206 |
| 207 Handle<ExecutableAccessorInfo> NewExecutableAccessorInfo(); |
| 206 | 208 |
| 207 Handle<Script> NewScript(Handle<String> source); | 209 Handle<Script> NewScript(Handle<String> source); |
| 208 | 210 |
| 209 // Foreign objects are pretenured when allocated by the bootstrapper. | 211 // Foreign objects are pretenured when allocated by the bootstrapper. |
| 210 Handle<Foreign> NewForeign(Address addr, | 212 Handle<Foreign> NewForeign(Address addr, |
| 211 PretenureFlag pretenure = NOT_TENURED); | 213 PretenureFlag pretenure = NOT_TENURED); |
| 212 | 214 |
| 213 // Allocate a new foreign object. The foreign is pretenured (allocated | 215 // Allocate a new foreign object. The foreign is pretenured (allocated |
| 214 // directly in the old generation). | 216 // directly in the old generation). |
| 215 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); | 217 Handle<Foreign> NewForeign(const AccessorDescriptor* foreign); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 // Update the map cache in the native context with (keys, map) | 520 // Update the map cache in the native context with (keys, map) |
| 519 Handle<MapCache> AddToMapCache(Handle<Context> context, | 521 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 520 Handle<FixedArray> keys, | 522 Handle<FixedArray> keys, |
| 521 Handle<Map> map); | 523 Handle<Map> map); |
| 522 }; | 524 }; |
| 523 | 525 |
| 524 | 526 |
| 525 } } // namespace v8::internal | 527 } } // namespace v8::internal |
| 526 | 528 |
| 527 #endif // V8_FACTORY_H_ | 529 #endif // V8_FACTORY_H_ |
| OLD | NEW |