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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // JS objects are pretenured when allocated by the bootstrapper and | 269 // JS objects are pretenured when allocated by the bootstrapper and |
270 // runtime. | 270 // runtime. |
271 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 271 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
272 PretenureFlag pretenure = NOT_TENURED); | 272 PretenureFlag pretenure = NOT_TENURED); |
273 | 273 |
274 // Global objects are pretenured. | 274 // Global objects are pretenured. |
275 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 275 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
276 | 276 |
277 // JS objects are pretenured when allocated by the bootstrapper and | 277 // JS objects are pretenured when allocated by the bootstrapper and |
278 // runtime. | 278 // runtime. |
279 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 279 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, |
| 280 PretenureFlag pretenure = NOT_TENURED); |
280 | 281 |
281 // JS modules are pretenured. | 282 // JS modules are pretenured. |
282 Handle<JSModule> NewJSModule(Handle<Context> context, | 283 Handle<JSModule> NewJSModule(Handle<Context> context, |
283 Handle<ScopeInfo> scope_info); | 284 Handle<ScopeInfo> scope_info); |
284 | 285 |
285 // JS arrays are pretenured when allocated by the parser. | 286 // JS arrays are pretenured when allocated by the parser. |
286 Handle<JSArray> NewJSArray( | 287 Handle<JSArray> NewJSArray( |
287 int capacity, | 288 int capacity, |
288 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 289 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
289 PretenureFlag pretenure = NOT_TENURED); | 290 PretenureFlag pretenure = NOT_TENURED); |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
518 // Update the map cache in the native context with (keys, map) | 519 // Update the map cache in the native context with (keys, map) |
519 Handle<MapCache> AddToMapCache(Handle<Context> context, | 520 Handle<MapCache> AddToMapCache(Handle<Context> context, |
520 Handle<FixedArray> keys, | 521 Handle<FixedArray> keys, |
521 Handle<Map> map); | 522 Handle<Map> map); |
522 }; | 523 }; |
523 | 524 |
524 | 525 |
525 } } // namespace v8::internal | 526 } } // namespace v8::internal |
526 | 527 |
527 #endif // V8_FACTORY_H_ | 528 #endif // V8_FACTORY_H_ |
OLD | NEW |