| 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 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 PretenureFlag pretenure = NOT_TENURED); | 279 PretenureFlag pretenure = NOT_TENURED); |
| 280 | 280 |
| 281 // Global objects are pretenured. | 281 // Global objects are pretenured. |
| 282 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 282 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
| 283 | 283 |
| 284 // JS objects are pretenured when allocated by the bootstrapper and | 284 // JS objects are pretenured when allocated by the bootstrapper and |
| 285 // runtime. | 285 // runtime. |
| 286 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, | 286 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, |
| 287 PretenureFlag pretenure = NOT_TENURED); | 287 PretenureFlag pretenure = NOT_TENURED); |
| 288 | 288 |
| 289 // JS generator iterators are not pretenured. |
| 290 Handle<JSGeneratorIterator> NewJSGeneratorIterator( |
| 291 Handle<JSFunction> function); |
| 292 |
| 289 // JS modules are pretenured. | 293 // JS modules are pretenured. |
| 290 Handle<JSModule> NewJSModule(Handle<Context> context, | 294 Handle<JSModule> NewJSModule(Handle<Context> context, |
| 291 Handle<ScopeInfo> scope_info); | 295 Handle<ScopeInfo> scope_info); |
| 292 | 296 |
| 293 // JS arrays are pretenured when allocated by the parser. | 297 // JS arrays are pretenured when allocated by the parser. |
| 294 Handle<JSArray> NewJSArray( | 298 Handle<JSArray> NewJSArray( |
| 295 int capacity, | 299 int capacity, |
| 296 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 300 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
| 297 PretenureFlag pretenure = NOT_TENURED); | 301 PretenureFlag pretenure = NOT_TENURED); |
| 298 | 302 |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 // Update the map cache in the native context with (keys, map) | 530 // Update the map cache in the native context with (keys, map) |
| 527 Handle<MapCache> AddToMapCache(Handle<Context> context, | 531 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 528 Handle<FixedArray> keys, | 532 Handle<FixedArray> keys, |
| 529 Handle<Map> map); | 533 Handle<Map> map); |
| 530 }; | 534 }; |
| 531 | 535 |
| 532 | 536 |
| 533 } } // namespace v8::internal | 537 } } // namespace v8::internal |
| 534 | 538 |
| 535 #endif // V8_FACTORY_H_ | 539 #endif // V8_FACTORY_H_ |
| OLD | NEW |