OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 Handle<ExternalArray> NewExternalArray( | 197 Handle<ExternalArray> NewExternalArray( |
198 int length, | 198 int length, |
199 ExternalArrayType array_type, | 199 ExternalArrayType array_type, |
200 void* external_pointer, | 200 void* external_pointer, |
201 PretenureFlag pretenure = NOT_TENURED); | 201 PretenureFlag pretenure = NOT_TENURED); |
202 | 202 |
203 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell( | 203 Handle<JSGlobalPropertyCell> NewJSGlobalPropertyCell( |
204 Handle<Object> value); | 204 Handle<Object> value); |
205 | 205 |
206 Handle<Map> NewMap(InstanceType type, int instance_size); | 206 Handle<Map> NewMap(InstanceType type, |
| 207 int instance_size, |
| 208 ElementsKind elements_kind = FAST_ELEMENTS); |
207 | 209 |
208 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); | 210 Handle<JSObject> NewFunctionPrototype(Handle<JSFunction> function); |
209 | 211 |
210 Handle<Map> CopyMapDropDescriptors(Handle<Map> map); | 212 Handle<Map> CopyMapDropDescriptors(Handle<Map> map); |
211 | 213 |
212 // Copy the map adding more inobject properties if possible without | 214 // Copy the map adding more inobject properties if possible without |
213 // overflowing the instance size. | 215 // overflowing the instance size. |
214 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); | 216 Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); |
215 | 217 |
216 Handle<Map> CopyMapDropTransitions(Handle<Map> map); | 218 Handle<Map> CopyMapDropTransitions(Handle<Map> map); |
(...skipping 29 matching lines...) Expand all Loading... |
246 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 248 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); |
247 | 249 |
248 // JS arrays are pretenured when allocated by the parser. | 250 // JS arrays are pretenured when allocated by the parser. |
249 Handle<JSArray> NewJSArray(int capacity, | 251 Handle<JSArray> NewJSArray(int capacity, |
250 PretenureFlag pretenure = NOT_TENURED); | 252 PretenureFlag pretenure = NOT_TENURED); |
251 | 253 |
252 Handle<JSArray> NewJSArrayWithElements( | 254 Handle<JSArray> NewJSArrayWithElements( |
253 Handle<FixedArray> elements, | 255 Handle<FixedArray> elements, |
254 PretenureFlag pretenure = NOT_TENURED); | 256 PretenureFlag pretenure = NOT_TENURED); |
255 | 257 |
| 258 void SetContent(Handle<JSArray> array, Handle<FixedArray> elements); |
| 259 |
| 260 void EnsureCanContainNonSmiElements(Handle<JSArray> array); |
| 261 |
256 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 262 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
257 | 263 |
258 // Change the type of the argument into a regular JS object and reinitialize. | 264 // Change the type of the argument into a regular JS object and reinitialize. |
259 void BecomeJSObject(Handle<JSProxy> object); | 265 void BecomeJSObject(Handle<JSProxy> object); |
260 | 266 |
261 Handle<JSFunction> NewFunction(Handle<String> name, | 267 Handle<JSFunction> NewFunction(Handle<String> name, |
262 Handle<Object> prototype); | 268 Handle<Object> prototype); |
263 | 269 |
264 Handle<JSFunction> NewFunctionWithoutPrototype( | 270 Handle<JSFunction> NewFunctionWithoutPrototype( |
265 Handle<String> name, | 271 Handle<String> name, |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 // Update the map cache in the global context with (keys, map) | 462 // Update the map cache in the global context with (keys, map) |
457 Handle<MapCache> AddToMapCache(Handle<Context> context, | 463 Handle<MapCache> AddToMapCache(Handle<Context> context, |
458 Handle<FixedArray> keys, | 464 Handle<FixedArray> keys, |
459 Handle<Map> map); | 465 Handle<Map> map); |
460 }; | 466 }; |
461 | 467 |
462 | 468 |
463 } } // namespace v8::internal | 469 } } // namespace v8::internal |
464 | 470 |
465 #endif // V8_FACTORY_H_ | 471 #endif // V8_FACTORY_H_ |
OLD | NEW |