| Index: src/factory.cc
 | 
| ===================================================================
 | 
| --- src/factory.cc	(revision 830)
 | 
| +++ src/factory.cc	(working copy)
 | 
| @@ -170,9 +170,9 @@
 | 
|  }
 | 
|  
 | 
|  
 | 
| -Handle<ByteArray> Factory::NewByteArray(int length) {
 | 
| +Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) {
 | 
|    ASSERT(0 <= length);
 | 
| -  CALL_HEAP_FUNCTION(Heap::AllocateByteArray(length), ByteArray);
 | 
| +  CALL_HEAP_FUNCTION(Heap::AllocateByteArray(length, pretenure), ByteArray);
 | 
|  }
 | 
|  
 | 
|  
 | 
| @@ -458,8 +458,14 @@
 | 
|  
 | 
|  
 | 
|  Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo,
 | 
| +                              Code::Flags flags, Handle<Object> self_ref) {
 | 
| +  CALL_HEAP_FUNCTION(Heap::CreateCode(
 | 
| +      desc, sinfo, flags, reinterpret_cast<Code**>(self_ref.location())), Code);
 | 
| +}
 | 
| +
 | 
| +Handle<Code> Factory::NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo,
 | 
|                                Code::Flags flags) {
 | 
| -  CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags), Code);
 | 
| +  CALL_HEAP_FUNCTION(Heap::CreateCode(desc, sinfo, flags, NULL), Code);
 | 
|  }
 | 
|  
 | 
|  
 | 
| @@ -706,8 +712,11 @@
 | 
|    ASSERT(type != INVALID_TYPE);
 | 
|  
 | 
|    Handle<JSFunction> result =
 | 
| -      Factory::NewFunction(Factory::empty_symbol(), type, instance_size,
 | 
| -                           code, true);
 | 
| +      Factory::NewFunction(Factory::empty_symbol(),
 | 
| +                           type,
 | 
| +                           instance_size,
 | 
| +                           code,
 | 
| +                           true);
 | 
|    // Set class name.
 | 
|    Handle<Object> class_name = Handle<Object>(obj->class_name());
 | 
|    if (class_name->IsString()) {
 | 
| 
 |