| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 PretenureFlag pretenure = NOT_TENURED); | 225 PretenureFlag pretenure = NOT_TENURED); |
| 226 | 226 |
| 227 static Handle<JSArray> NewJSArrayWithElements( | 227 static Handle<JSArray> NewJSArrayWithElements( |
| 228 Handle<FixedArray> elements, | 228 Handle<FixedArray> elements, |
| 229 PretenureFlag pretenure = NOT_TENURED); | 229 PretenureFlag pretenure = NOT_TENURED); |
| 230 | 230 |
| 231 static Handle<JSFunction> NewFunction(Handle<String> name, | 231 static Handle<JSFunction> NewFunction(Handle<String> name, |
| 232 Handle<Object> prototype); | 232 Handle<Object> prototype); |
| 233 | 233 |
| 234 static Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name); | 234 static Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name); |
| 235 static Handle<JSFunction> NewFunctionWithoutPrototypeStrict( |
| 236 Handle<String> name); |
| 235 | 237 |
| 236 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 238 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
| 237 | 239 |
| 238 static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 240 static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
| 239 Handle<SharedFunctionInfo> function_info, | 241 Handle<SharedFunctionInfo> function_info, |
| 240 Handle<Map> function_map, | 242 Handle<Map> function_map, |
| 241 PretenureFlag pretenure); | 243 PretenureFlag pretenure); |
| 242 | 244 |
| 243 static Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 245 static Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 244 Handle<SharedFunctionInfo> function_info, | 246 Handle<SharedFunctionInfo> function_info, |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 Handle<String> source, | 403 Handle<String> source, |
| 402 JSRegExp::Flags flags, | 404 JSRegExp::Flags flags, |
| 403 int capture_count); | 405 int capture_count); |
| 404 | 406 |
| 405 private: | 407 private: |
| 406 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, | 408 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, |
| 407 Handle<Object> prototype); | 409 Handle<Object> prototype); |
| 408 | 410 |
| 409 static Handle<JSFunction> NewFunctionWithoutPrototypeHelper( | 411 static Handle<JSFunction> NewFunctionWithoutPrototypeHelper( |
| 410 Handle<String> name); | 412 Handle<String> name); |
| 413 static Handle<JSFunction> NewFunctionWithoutPrototypeStrictHelper( |
| 414 Handle<String> name); |
| 411 | 415 |
| 412 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( | 416 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( |
| 413 Handle<DescriptorArray> array, | 417 Handle<DescriptorArray> array, |
| 414 Handle<Object> descriptors); | 418 Handle<Object> descriptors); |
| 415 | 419 |
| 416 // Create a new map cache. | 420 // Create a new map cache. |
| 417 static Handle<MapCache> NewMapCache(int at_least_space_for); | 421 static Handle<MapCache> NewMapCache(int at_least_space_for); |
| 418 | 422 |
| 419 // Update the map cache in the global context with (keys, map) | 423 // Update the map cache in the global context with (keys, map) |
| 420 static Handle<MapCache> AddToMapCache(Handle<Context> context, | 424 static Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 421 Handle<FixedArray> keys, | 425 Handle<FixedArray> keys, |
| 422 Handle<Map> map); | 426 Handle<Map> map); |
| 423 }; | 427 }; |
| 424 | 428 |
| 425 | 429 |
| 426 } } // namespace v8::internal | 430 } } // namespace v8::internal |
| 427 | 431 |
| 428 #endif // V8_FACTORY_H_ | 432 #endif // V8_FACTORY_H_ |
| OLD | NEW |