| 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 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 252 |
| 253 // JS objects are pretenured when allocated by the bootstrapper and | 253 // JS objects are pretenured when allocated by the bootstrapper and |
| 254 // runtime. | 254 // runtime. |
| 255 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 255 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); |
| 256 | 256 |
| 257 // JS arrays are pretenured when allocated by the parser. | 257 // JS arrays are pretenured when allocated by the parser. |
| 258 Handle<JSArray> NewJSArray(int capacity, | 258 Handle<JSArray> NewJSArray(int capacity, |
| 259 PretenureFlag pretenure = NOT_TENURED); | 259 PretenureFlag pretenure = NOT_TENURED); |
| 260 | 260 |
| 261 Handle<JSArray> NewJSArrayWithElements( | 261 Handle<JSArray> NewJSArrayWithElements( |
| 262 Handle<FixedArray> elements, | 262 Handle<FixedArrayBase> elements, |
| 263 PretenureFlag pretenure = NOT_TENURED); | 263 PretenureFlag pretenure = NOT_TENURED); |
| 264 | 264 |
| 265 void SetContent(Handle<JSArray> array, Handle<FixedArray> elements); | 265 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); |
| 266 | 266 |
| 267 void EnsureCanContainNonSmiElements(Handle<JSArray> array); | 267 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); |
| 268 void EnsureCanContainElements(Handle<JSArray> array, |
| 269 Handle<FixedArrayBase> elements, |
| 270 EnsureElementsMode mode); |
| 268 | 271 |
| 269 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 272 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 270 | 273 |
| 271 // Change the type of the argument into a JS object/function and reinitialize. | 274 // Change the type of the argument into a JS object/function and reinitialize. |
| 272 void BecomeJSObject(Handle<JSReceiver> object); | 275 void BecomeJSObject(Handle<JSReceiver> object); |
| 273 void BecomeJSFunction(Handle<JSReceiver> object); | 276 void BecomeJSFunction(Handle<JSReceiver> object); |
| 274 | 277 |
| 275 void SetIdentityHash(Handle<JSObject> object, Object* hash); | 278 void SetIdentityHash(Handle<JSObject> object, Object* hash); |
| 276 | 279 |
| 277 Handle<JSFunction> NewFunction(Handle<String> name, | 280 Handle<JSFunction> NewFunction(Handle<String> name, |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 // Update the map cache in the global context with (keys, map) | 484 // Update the map cache in the global context with (keys, map) |
| 482 Handle<MapCache> AddToMapCache(Handle<Context> context, | 485 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 483 Handle<FixedArray> keys, | 486 Handle<FixedArray> keys, |
| 484 Handle<Map> map); | 487 Handle<Map> map); |
| 485 }; | 488 }; |
| 486 | 489 |
| 487 | 490 |
| 488 } } // namespace v8::internal | 491 } } // namespace v8::internal |
| 489 | 492 |
| 490 #endif // V8_FACTORY_H_ | 493 #endif // V8_FACTORY_H_ |
| OLD | NEW |