| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 static Handle<Proxy> NewProxy(Address addr, | 147 static Handle<Proxy> NewProxy(Address addr, |
| 148 PretenureFlag pretenure = NOT_TENURED); | 148 PretenureFlag pretenure = NOT_TENURED); |
| 149 | 149 |
| 150 // Allocate a new proxy. The proxy is pretenured (allocated directly in | 150 // Allocate a new proxy. The proxy is pretenured (allocated directly in |
| 151 // the old generation). | 151 // the old generation). |
| 152 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy); | 152 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy); |
| 153 | 153 |
| 154 static Handle<ByteArray> NewByteArray(int length, | 154 static Handle<ByteArray> NewByteArray(int length, |
| 155 PretenureFlag pretenure = NOT_TENURED); | 155 PretenureFlag pretenure = NOT_TENURED); |
| 156 | 156 |
| 157 static Handle<PixelArray> NewPixelArray(int length, |
| 158 uint8_t* external_pointer, |
| 159 PretenureFlag pretenure = NOT_TENURED); |
| 160 |
| 157 static Handle<Map> NewMap(InstanceType type, int instance_size); | 161 static Handle<Map> NewMap(InstanceType type, int instance_size); |
| 158 | 162 |
| 159 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); | 163 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); |
| 160 | 164 |
| 161 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map); | 165 static Handle<Map> CopyMapDropDescriptors(Handle<Map> map); |
| 162 | 166 |
| 163 // Copy the map adding more inobject properties if possible without | 167 // Copy the map adding more inobject properties if possible without |
| 164 // overflowing the instance size. | 168 // overflowing the instance size. |
| 165 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 169 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
| 166 | 170 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 // Update the map cache in the global context with (keys, map) | 374 // Update the map cache in the global context with (keys, map) |
| 371 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 375 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 372 Handle<FixedArray> keys, | 376 Handle<FixedArray> keys, |
| 373 Handle<Map> map); | 377 Handle<Map> map); |
| 374 }; | 378 }; |
| 375 | 379 |
| 376 | 380 |
| 377 } } // namespace v8::internal | 381 } } // namespace v8::internal |
| 378 | 382 |
| 379 #endif // V8_FACTORY_H_ | 383 #endif // V8_FACTORY_H_ |
| OLD | NEW |