| 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 1297 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1308  |  1308  | 
|  1309 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, |  1309 Handle<JSObject> Factory::NewJSObject(Handle<JSFunction> constructor, | 
|  1310                                       PretenureFlag pretenure) { |  1310                                       PretenureFlag pretenure) { | 
|  1311   JSFunction::EnsureHasInitialMap(constructor); |  1311   JSFunction::EnsureHasInitialMap(constructor); | 
|  1312   CALL_HEAP_FUNCTION( |  1312   CALL_HEAP_FUNCTION( | 
|  1313       isolate(), |  1313       isolate(), | 
|  1314       isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); |  1314       isolate()->heap()->AllocateJSObject(*constructor, pretenure), JSObject); | 
|  1315 } |  1315 } | 
|  1316  |  1316  | 
|  1317  |  1317  | 
 |  1318 Handle<JSObject> Factory::NewJSObjectWithMemento( | 
 |  1319     Handle<JSFunction> constructor, | 
 |  1320     Handle<AllocationSite> site) { | 
 |  1321   JSFunction::EnsureHasInitialMap(constructor); | 
 |  1322   CALL_HEAP_FUNCTION( | 
 |  1323       isolate(), | 
 |  1324       isolate()->heap()->AllocateJSObjectWithAllocationSite( | 
 |  1325           *constructor, site), | 
 |  1326       JSObject); | 
 |  1327 } | 
 |  1328  | 
 |  1329  | 
|  1318 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, |  1330 Handle<JSModule> Factory::NewJSModule(Handle<Context> context, | 
|  1319                                       Handle<ScopeInfo> scope_info) { |  1331                                       Handle<ScopeInfo> scope_info) { | 
|  1320   CALL_HEAP_FUNCTION( |  1332   CALL_HEAP_FUNCTION( | 
|  1321       isolate(), |  1333       isolate(), | 
|  1322       isolate()->heap()->AllocateJSModule(*context, *scope_info), JSModule); |  1334       isolate()->heap()->AllocateJSModule(*context, *scope_info), JSModule); | 
|  1323 } |  1335 } | 
|  1324  |  1336  | 
|  1325  |  1337  | 
|  1326 // TODO(mstarzinger): Temporary wrapper until handlified. |  1338 // TODO(mstarzinger): Temporary wrapper until handlified. | 
|  1327 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, |  1339 static Handle<NameDictionary> NameDictionaryAdd(Handle<NameDictionary> dict, | 
| (...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1996   return Handle<Object>::null(); |  2008   return Handle<Object>::null(); | 
|  1997 } |  2009 } | 
|  1998  |  2010  | 
|  1999  |  2011  | 
|  2000 Handle<Object> Factory::ToBoolean(bool value) { |  2012 Handle<Object> Factory::ToBoolean(bool value) { | 
|  2001   return value ? true_value() : false_value(); |  2013   return value ? true_value() : false_value(); | 
|  2002 } |  2014 } | 
|  2003  |  2015  | 
|  2004  |  2016  | 
|  2005 } }  // namespace v8::internal |  2017 } }  // namespace v8::internal | 
| OLD | NEW |