| 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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 // These objects are used by the api to create env-independent data | 316 // These objects are used by the api to create env-independent data |
| 317 // structures in the heap. | 317 // structures in the heap. |
| 318 Handle<JSObject> NewNeanderObject(); | 318 Handle<JSObject> NewNeanderObject(); |
| 319 | 319 |
| 320 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); | 320 Handle<JSObject> NewArgumentsObject(Handle<Object> callee, int length); |
| 321 | 321 |
| 322 // JS objects are pretenured when allocated by the bootstrapper and | 322 // JS objects are pretenured when allocated by the bootstrapper and |
| 323 // runtime. | 323 // runtime. |
| 324 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, | 324 Handle<JSObject> NewJSObject(Handle<JSFunction> constructor, |
| 325 PretenureFlag pretenure = NOT_TENURED); | 325 PretenureFlag pretenure = NOT_TENURED); |
| 326 // JSObject that should have a memento pointing to the allocation site. |
| 327 Handle<JSObject> NewJSObjectWithMemento(Handle<JSFunction> constructor, |
| 328 Handle<AllocationSite> site); |
| 326 | 329 |
| 327 // Global objects are pretenured and initialized based on a constructor. | 330 // Global objects are pretenured and initialized based on a constructor. |
| 328 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 331 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
| 329 | 332 |
| 330 // JS objects are pretenured when allocated by the bootstrapper and | 333 // JS objects are pretenured when allocated by the bootstrapper and |
| 331 // runtime. | 334 // runtime. |
| 332 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, | 335 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map, |
| 333 PretenureFlag pretenure = NOT_TENURED, | 336 PretenureFlag pretenure = NOT_TENURED, |
| 334 bool allocate_properties = true); | 337 bool allocate_properties = true); |
| 335 | 338 |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 isolate()); | 600 isolate()); |
| 598 } else { | 601 } else { |
| 599 return NewNumber(static_cast<double>(value), pretenure); | 602 return NewNumber(static_cast<double>(value), pretenure); |
| 600 } | 603 } |
| 601 } | 604 } |
| 602 | 605 |
| 603 | 606 |
| 604 } } // namespace v8::internal | 607 } } // namespace v8::internal |
| 605 | 608 |
| 606 #endif // V8_FACTORY_H_ | 609 #endif // V8_FACTORY_H_ |
| OLD | NEW |