| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 static Handle<JSFunction> NewFunction(Handle<String> name, | 200 static Handle<JSFunction> NewFunction(Handle<String> name, |
| 200 Handle<Object> prototype); | 201 Handle<Object> prototype); |
| 201 | 202 |
| 202 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 203 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
| 203 | 204 |
| 204 static Handle<JSFunction> NewFunctionFromBoilerplate( | 205 static Handle<JSFunction> NewFunctionFromBoilerplate( |
| 205 Handle<JSFunction> boilerplate, | 206 Handle<JSFunction> boilerplate, |
| 206 Handle<Context> context); | 207 Handle<Context> context); |
| 207 | 208 |
| 208 static Handle<Code> NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, | 209 static Handle<Code> NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, |
| 210 Code::Flags flags, Handle<Object> self_reference); |
| 211 |
| 212 static Handle<Code> NewCode(const CodeDesc& desc, ScopeInfo<>* sinfo, |
| 209 Code::Flags flags); | 213 Code::Flags flags); |
| 210 | 214 |
| 211 static Handle<Code> CopyCode(Handle<Code> code); | 215 static Handle<Code> CopyCode(Handle<Code> code); |
| 212 | 216 |
| 213 static Handle<Object> ToObject(Handle<Object> object, | 217 static Handle<Object> ToObject(Handle<Object> object, |
| 214 Handle<Context> global_context); | 218 Handle<Context> global_context); |
| 215 | 219 |
| 216 // Interface for creating error objects. | 220 // Interface for creating error objects. |
| 217 | 221 |
| 218 static Handle<Object> NewError(const char* maker, const char* type, | 222 static Handle<Object> NewError(const char* maker, const char* type, |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 343 // Update the map cache in the global context with (keys, map) | 347 // Update the map cache in the global context with (keys, map) |
| 344 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 348 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 345 Handle<FixedArray> keys, | 349 Handle<FixedArray> keys, |
| 346 Handle<Map> map); | 350 Handle<Map> map); |
| 347 }; | 351 }; |
| 348 | 352 |
| 349 | 353 |
| 350 } } // namespace v8::internal | 354 } } // namespace v8::internal |
| 351 | 355 |
| 352 #endif // V8_FACTORY_H_ | 356 #endif // V8_FACTORY_H_ |
| OLD | NEW |