| 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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 // runtime. | 294 // runtime. |
| 295 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 295 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
| 296 PretenureFlag pretenure = NOT_TENURED); | 296 PretenureFlag pretenure = NOT_TENURED); |
| 297 | 297 |
| 298 // Global objects are pretenured. | 298 // Global objects are pretenured. |
| 299 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 299 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
| 300 | 300 |
| 301 // JS objects are pretenured when allocated by the bootstrapper and | 301 // JS objects are pretenured when allocated by the bootstrapper and |
| 302 // runtime. | 302 // runtime. |
| 303 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, | 303 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, |
| 304 PretenureFlag pretenure = NOT_TENURED); | 304 PretenureFlag pretenure = NOT_TENURED, |
| 305 bool allocate_properties = true); |
| 306 |
| 307 Handle<JSObject> NewJSObjectFromMapForDeoptimizer( |
| 308 Handle<Map> map, PretenureFlag pretenure = NOT_TENURED); |
| 305 | 309 |
| 306 // JS modules are pretenured. | 310 // JS modules are pretenured. |
| 307 Handle<JSModule> NewJSModule(Handle<Context> context, | 311 Handle<JSModule> NewJSModule(Handle<Context> context, |
| 308 Handle<ScopeInfo> scope_info); | 312 Handle<ScopeInfo> scope_info); |
| 309 | 313 |
| 310 // JS arrays are pretenured when allocated by the parser. | 314 // JS arrays are pretenured when allocated by the parser. |
| 311 Handle<JSArray> NewJSArray( | 315 Handle<JSArray> NewJSArray( |
| 312 int capacity, | 316 int capacity, |
| 313 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 317 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
| 314 PretenureFlag pretenure = NOT_TENURED); | 318 PretenureFlag pretenure = NOT_TENURED); |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 } | 643 } |
| 640 | 644 |
| 641 private: | 645 private: |
| 642 Isolate* isolate_; | 646 Isolate* isolate_; |
| 643 }; | 647 }; |
| 644 | 648 |
| 645 | 649 |
| 646 } } // namespace v8::internal | 650 } } // namespace v8::internal |
| 647 | 651 |
| 648 #endif // V8_FACTORY_H_ | 652 #endif // V8_FACTORY_H_ |
| OLD | NEW |