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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 | 305 |
| 306 Handle<JSObject> NewJSObjectFromMapForDeoptimizer( |
| 307 Handle<Map> map, PretenureFlag pretenure = NOT_TENURED); |
| 308 |
306 // JS modules are pretenured. | 309 // JS modules are pretenured. |
307 Handle<JSModule> NewJSModule(Handle<Context> context, | 310 Handle<JSModule> NewJSModule(Handle<Context> context, |
308 Handle<ScopeInfo> scope_info); | 311 Handle<ScopeInfo> scope_info); |
309 | 312 |
310 // JS arrays are pretenured when allocated by the parser. | 313 // JS arrays are pretenured when allocated by the parser. |
311 Handle<JSArray> NewJSArray( | 314 Handle<JSArray> NewJSArray( |
312 int capacity, | 315 int capacity, |
313 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, | 316 ElementsKind elements_kind = TERMINAL_FAST_ELEMENTS_KIND, |
314 PretenureFlag pretenure = NOT_TENURED); | 317 PretenureFlag pretenure = NOT_TENURED); |
315 | 318 |
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 } | 642 } |
640 | 643 |
641 private: | 644 private: |
642 Isolate* isolate_; | 645 Isolate* isolate_; |
643 }; | 646 }; |
644 | 647 |
645 | 648 |
646 } } // namespace v8::internal | 649 } } // namespace v8::internal |
647 | 650 |
648 #endif // V8_FACTORY_H_ | 651 #endif // V8_FACTORY_H_ |
OLD | NEW |