| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { | 163 Handle<Proxy> Factory::NewProxy(Address addr, PretenureFlag pretenure) { |
| 164 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); | 164 CALL_HEAP_FUNCTION(Heap::AllocateProxy(addr, pretenure), Proxy); |
| 165 } | 165 } |
| 166 | 166 |
| 167 | 167 |
| 168 Handle<Proxy> Factory::NewProxy(const AccessorDescriptor* desc) { | 168 Handle<Proxy> Factory::NewProxy(const AccessorDescriptor* desc) { |
| 169 return NewProxy((Address) desc, TENURED); | 169 return NewProxy((Address) desc, TENURED); |
| 170 } | 170 } |
| 171 | 171 |
| 172 | 172 |
| 173 Handle<ByteArray> Factory::NewByteArray(int length) { | 173 Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) { |
| 174 ASSERT(0 <= length); | 174 ASSERT(0 <= length); |
| 175 CALL_HEAP_FUNCTION(Heap::AllocateByteArray(length), ByteArray); | 175 CALL_HEAP_FUNCTION(Heap::AllocateByteArray(length, pretenure), ByteArray); |
| 176 } | 176 } |
| 177 | 177 |
| 178 | 178 |
| 179 Handle<Map> Factory::NewMap(InstanceType type, int instance_size) { | 179 Handle<Map> Factory::NewMap(InstanceType type, int instance_size) { |
| 180 CALL_HEAP_FUNCTION(Heap::AllocateMap(type, instance_size), Map); | 180 CALL_HEAP_FUNCTION(Heap::AllocateMap(type, instance_size), Map); |
| 181 } | 181 } |
| 182 | 182 |
| 183 | 183 |
| 184 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { | 184 Handle<JSObject> Factory::NewFunctionPrototype(Handle<JSFunction> function) { |
| 185 CALL_HEAP_FUNCTION(Heap::AllocateFunctionPrototype(*function), JSObject); | 185 CALL_HEAP_FUNCTION(Heap::AllocateFunctionPrototype(*function), JSObject); |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 Execution::ConfigureInstance(instance, | 836 Execution::ConfigureInstance(instance, |
| 837 instance_template, | 837 instance_template, |
| 838 pending_exception); | 838 pending_exception); |
| 839 } else { | 839 } else { |
| 840 *pending_exception = false; | 840 *pending_exception = false; |
| 841 } | 841 } |
| 842 } | 842 } |
| 843 | 843 |
| 844 | 844 |
| 845 } } // namespace v8::internal | 845 } } // namespace v8::internal |
| OLD | NEW |