| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // Allocate a new uninitialized fixed double array. | 52 // Allocate a new uninitialized fixed double array. |
| 53 Handle<FixedArray> NewFixedDoubleArray( | 53 Handle<FixedArray> NewFixedDoubleArray( |
| 54 int size, | 54 int size, |
| 55 PretenureFlag pretenure = NOT_TENURED); | 55 PretenureFlag pretenure = NOT_TENURED); |
| 56 | 56 |
| 57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); | 57 Handle<NumberDictionary> NewNumberDictionary(int at_least_space_for); |
| 58 | 58 |
| 59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for); | 59 Handle<StringDictionary> NewStringDictionary(int at_least_space_for); |
| 60 | 60 |
| 61 Handle<ObjectHashTable> NewObjectHashTable(int at_least_space_for); |
| 62 |
| 61 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); | 63 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors); |
| 62 Handle<DeoptimizationInputData> NewDeoptimizationInputData( | 64 Handle<DeoptimizationInputData> NewDeoptimizationInputData( |
| 63 int deopt_entry_count, | 65 int deopt_entry_count, |
| 64 PretenureFlag pretenure); | 66 PretenureFlag pretenure); |
| 65 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( | 67 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( |
| 66 int deopt_entry_count, | 68 int deopt_entry_count, |
| 67 PretenureFlag pretenure); | 69 PretenureFlag pretenure); |
| 68 | 70 |
| 69 Handle<String> LookupSymbol(Vector<const char> str); | 71 Handle<String> LookupSymbol(Vector<const char> str); |
| 70 Handle<String> LookupSymbol(Handle<String> str); | 72 Handle<String> LookupSymbol(Handle<String> str); |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 246 // JS arrays are pretenured when allocated by the parser. | 248 // JS arrays are pretenured when allocated by the parser. |
| 247 Handle<JSArray> NewJSArray(int capacity, | 249 Handle<JSArray> NewJSArray(int capacity, |
| 248 PretenureFlag pretenure = NOT_TENURED); | 250 PretenureFlag pretenure = NOT_TENURED); |
| 249 | 251 |
| 250 Handle<JSArray> NewJSArrayWithElements( | 252 Handle<JSArray> NewJSArrayWithElements( |
| 251 Handle<FixedArray> elements, | 253 Handle<FixedArray> elements, |
| 252 PretenureFlag pretenure = NOT_TENURED); | 254 PretenureFlag pretenure = NOT_TENURED); |
| 253 | 255 |
| 254 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); | 256 Handle<JSProxy> NewJSProxy(Handle<Object> handler, Handle<Object> prototype); |
| 255 | 257 |
| 258 // Change the type of the argument into a regular JS object and reinitialize. |
| 259 void BecomeJSObject(Handle<JSProxy> object); |
| 260 |
| 256 Handle<JSFunction> NewFunction(Handle<String> name, | 261 Handle<JSFunction> NewFunction(Handle<String> name, |
| 257 Handle<Object> prototype); | 262 Handle<Object> prototype); |
| 258 | 263 |
| 259 Handle<JSFunction> NewFunctionWithoutPrototype( | 264 Handle<JSFunction> NewFunctionWithoutPrototype( |
| 260 Handle<String> name, | 265 Handle<String> name, |
| 261 StrictModeFlag strict_mode); | 266 StrictModeFlag strict_mode); |
| 262 | 267 |
| 263 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 268 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
| 264 | 269 |
| 265 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 270 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 449 // Update the map cache in the global context with (keys, map) | 454 // Update the map cache in the global context with (keys, map) |
| 450 Handle<MapCache> AddToMapCache(Handle<Context> context, | 455 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 451 Handle<FixedArray> keys, | 456 Handle<FixedArray> keys, |
| 452 Handle<Map> map); | 457 Handle<Map> map); |
| 453 }; | 458 }; |
| 454 | 459 |
| 455 | 460 |
| 456 } } // namespace v8::internal | 461 } } // namespace v8::internal |
| 457 | 462 |
| 458 #endif // V8_FACTORY_H_ | 463 #endif // V8_FACTORY_H_ |
| OLD | NEW |