| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
| 11 // with the distribution. | 11 // with the distribution. |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 // Global objects are pretenured. | 256 // Global objects are pretenured. |
| 257 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); | 257 Handle<GlobalObject> NewGlobalObject(Handle<JSFunction> constructor); |
| 258 | 258 |
| 259 // JS objects are pretenured when allocated by the bootstrapper and | 259 // JS objects are pretenured when allocated by the bootstrapper and |
| 260 // runtime. | 260 // runtime. |
| 261 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); | 261 Handle<JSObject> NewJSObjectFromMap(Handle<Map> map); |
| 262 | 262 |
| 263 // JS arrays are pretenured when allocated by the parser. | 263 // JS arrays are pretenured when allocated by the parser. |
| 264 Handle<JSArray> NewJSArray(int capacity, | 264 Handle<JSArray> NewJSArray(int capacity, |
| 265 ElementsKind elements_kind = FAST_ELEMENTS, |
| 265 PretenureFlag pretenure = NOT_TENURED); | 266 PretenureFlag pretenure = NOT_TENURED); |
| 266 | 267 |
| 267 Handle<JSArray> NewJSArrayWithElements( | 268 Handle<JSArray> NewJSArrayWithElements( |
| 268 Handle<FixedArrayBase> elements, | 269 Handle<FixedArrayBase> elements, |
| 270 ElementsKind elements_kind = FAST_ELEMENTS, |
| 269 PretenureFlag pretenure = NOT_TENURED); | 271 PretenureFlag pretenure = NOT_TENURED); |
| 270 | 272 |
| 271 void SetElementsCapacityAndLength(Handle<JSArray> array, | 273 void SetElementsCapacityAndLength(Handle<JSArray> array, |
| 272 int capacity, | 274 int capacity, |
| 273 int length); | 275 int length); |
| 274 | 276 |
| 275 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); | 277 void SetContent(Handle<JSArray> array, Handle<FixedArrayBase> elements); |
| 276 | 278 |
| 277 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); | 279 void EnsureCanContainHeapObjectElements(Handle<JSArray> array); |
| 278 void EnsureCanContainElements(Handle<JSArray> array, | 280 void EnsureCanContainElements(Handle<JSArray> array, |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 // Update the map cache in the global context with (keys, map) | 501 // Update the map cache in the global context with (keys, map) |
| 500 Handle<MapCache> AddToMapCache(Handle<Context> context, | 502 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 501 Handle<FixedArray> keys, | 503 Handle<FixedArray> keys, |
| 502 Handle<Map> map); | 504 Handle<Map> map); |
| 503 }; | 505 }; |
| 504 | 506 |
| 505 | 507 |
| 506 } } // namespace v8::internal | 508 } } // namespace v8::internal |
| 507 | 509 |
| 508 #endif // V8_FACTORY_H_ | 510 #endif // V8_FACTORY_H_ |
| OLD | NEW |