Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1302 | 1302 |
| 1303 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, | 1303 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, |
| 1304 PretenureFlag pretenure) { | 1304 PretenureFlag pretenure) { |
| 1305 JSFunction::EnsureHasInitialMap(constructor); | 1305 JSFunction::EnsureHasInitialMap(constructor); |
| 1306 CALL_HEAP_FUNCTION( | 1306 CALL_HEAP_FUNCTION( |
| 1307 isolate(), | 1307 isolate(), |
| 1308 isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); | 1308 isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); |
| 1309 } | 1309 } |
| 1310 | 1310 |
| 1311 | 1311 |
| 1312 Handle<JSObject> Factory::NewJSObjectWithMemento( | |
| 1313 Handle<JSFunction> constructor, | |
| 1314 Handle<AllocationSite> site) { | |
| 1315 JSFunction::EnsureHasInitialMap(constructor); | |
| 1316 CALL_HEAP_FUNCTION( | |
| 1317 isolate(), | |
| 1318 isolate()->heap()->AllocateJSObjectWithAllocationSite( | |
|
Hannes Payer (out of office)
2014/02/18 16:24:26
The refactoring of AllocateJSObject* should happen
mvstanton
2014/02/19 08:40:26
Right on, I've delivered a CL to you with that ref
| |
| 1319 *constructor, site), | |
| 1320 JSObject); | |
| 1321 } | |
| 1322 | |
| 1323 | |
| 1312 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, | 1324 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, |
| 1313 Handle<ScopeInfo> scope_info) { | 1325 Handle<ScopeInfo> scope_info) { |
| 1314 CALL_HEAP_FUNCTION( | 1326 CALL_HEAP_FUNCTION( |
| 1315 isolate(), | 1327 isolate(), |
| 1316 isolate()->heap()->AllocateJSModule(*context, *scope_info), JSModule); | 1328 isolate()->heap()->AllocateJSModule(*context, *scope_info), JSModule); |
| 1317 } | 1329 } |
| 1318 | 1330 |
| 1319 | 1331 |
| 1320 // TODO(mstarzinger): Temporary wrapper until handlified. | 1332 // TODO(mstarzinger): Temporary wrapper until handlified. |
| 1321 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, | 1333 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, |
| (...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1988 return Handle<Object>::null(); | 2000 return Handle<Object>::null(); |
| 1989 } | 2001 } |
| 1990 | 2002 |
| 1991 | 2003 |
| 1992 Handle<Object> Factory::ToBoolean(bool value) { | 2004 Handle<Object> Factory::ToBoolean(bool value) { |
| 1993 return value ? true_value() : false_value(); | 2005 return value ? true_value() : false_value(); |
| 1994 } | 2006 } |
| 1995 | 2007 |
| 1996 | 2008 |
| 1997 } } // namespace v8::internal | 2009 } } // namespace v8::internal |
| OLD | NEW |