| 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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 static Handle<Script> NewScript(Handle<String> source); | 140 static Handle<Script> NewScript(Handle<String> source); |
| 141 | 141 |
| 142 // Proxies are pretenured when allocated by the bootstrapper. | 142 // Proxies are pretenured when allocated by the bootstrapper. |
| 143 static Handle<Proxy> NewProxy(Address addr, | 143 static Handle<Proxy> NewProxy(Address addr, |
| 144 PretenureFlag pretenure = NOT_TENURED); | 144 PretenureFlag pretenure = NOT_TENURED); |
| 145 | 145 |
| 146 // Allocate a new proxy. The proxy is pretenured (allocated directly in | 146 // Allocate a new proxy. The proxy is pretenured (allocated directly in |
| 147 // the old generation). | 147 // the old generation). |
| 148 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy); | 148 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy); |
| 149 | 149 |
| 150 static Handle<ByteArray> NewByteArray(int length); | 150 static Handle<ByteArray> NewByteArray(int length, |
| 151 PretenureFlag pretenure = NOT_TENURED); |
| 151 | 152 |
| 152 static Handle<Map> NewMap(InstanceType type, int instance_size); | 153 static Handle<Map> NewMap(InstanceType type, int instance_size); |
| 153 | 154 |
| 154 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); | 155 static Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); |
| 155 | 156 |
| 156 static Handle<Map> CopyMap(Handle<Map> map); | 157 static Handle<Map> CopyMap(Handle<Map> map); |
| 157 | 158 |
| 158 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 159 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
| 159 | 160 |
| 160 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); | 161 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // Update the map cache in the global context with (keys, map) | 344 // Update the map cache in the global context with (keys, map) |
| 344 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 345 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 345 Handle<FixedArray> keys, | 346 Handle<FixedArray> keys, |
| 346 Handle<Map> map); | 347 Handle<Map> map); |
| 347 }; | 348 }; |
| 348 | 349 |
| 349 | 350 |
| 350 } } // namespace v8::internal | 351 } } // namespace v8::internal |
| 351 | 352 |
| 352 #endif // V8_FACTORY_H_ | 353 #endif // V8_FACTORY_H_ |
| OLD | NEW |