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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
270 void BecomeJSObject(Handle<JSReceiver> object); | 270 void BecomeJSObject(Handle<JSReceiver> object); |
271 void BecomeJSFunction(Handle<JSReceiver> object); | 271 void BecomeJSFunction(Handle<JSReceiver> object); |
272 | 272 |
273 void SetIdentityHash(Handle<JSObject> object, Object* hash); | 273 void SetIdentityHash(Handle<JSObject> object, Object* hash); |
274 | 274 |
275 Handle<JSFunction> NewFunction(Handle<String> name, | 275 Handle<JSFunction> NewFunction(Handle<String> name, |
276 Handle<Object> prototype); | 276 Handle<Object> prototype); |
277 | 277 |
278 Handle<JSFunction> NewFunctionWithoutPrototype( | 278 Handle<JSFunction> NewFunctionWithoutPrototype( |
279 Handle<String> name, | 279 Handle<String> name, |
280 StrictModeFlag strict_mode); | 280 LanguageMode language_mode); |
281 | 281 |
282 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); | 282 Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); |
283 | 283 |
284 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( | 284 Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( |
285 Handle<SharedFunctionInfo> function_info, | 285 Handle<SharedFunctionInfo> function_info, |
286 Handle<Map> function_map, | 286 Handle<Map> function_map, |
287 PretenureFlag pretenure); | 287 PretenureFlag pretenure); |
288 | 288 |
289 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 289 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
290 Handle<SharedFunctionInfo> function_info, | 290 Handle<SharedFunctionInfo> function_info, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 Handle<Object> ToBoolean(bool value); | 460 Handle<Object> ToBoolean(bool value); |
461 | 461 |
462 private: | 462 private: |
463 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } | 463 Isolate* isolate() { return reinterpret_cast<Isolate*>(this); } |
464 | 464 |
465 Handle<JSFunction> NewFunctionHelper(Handle<String> name, | 465 Handle<JSFunction> NewFunctionHelper(Handle<String> name, |
466 Handle<Object> prototype); | 466 Handle<Object> prototype); |
467 | 467 |
468 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( | 468 Handle<JSFunction> NewFunctionWithoutPrototypeHelper( |
469 Handle<String> name, | 469 Handle<String> name, |
470 StrictModeFlag strict_mode); | 470 LanguageMode language_mode); |
471 | 471 |
472 Handle<DescriptorArray> CopyAppendCallbackDescriptors( | 472 Handle<DescriptorArray> CopyAppendCallbackDescriptors( |
473 Handle<DescriptorArray> array, | 473 Handle<DescriptorArray> array, |
474 Handle<Object> descriptors); | 474 Handle<Object> descriptors); |
475 | 475 |
476 // Create a new map cache. | 476 // Create a new map cache. |
477 Handle<MapCache> NewMapCache(int at_least_space_for); | 477 Handle<MapCache> NewMapCache(int at_least_space_for); |
478 | 478 |
479 // Update the map cache in the global context with (keys, map) | 479 // Update the map cache in the global context with (keys, map) |
480 Handle<MapCache> AddToMapCache(Handle<Context> context, | 480 Handle<MapCache> AddToMapCache(Handle<Context> context, |
481 Handle<FixedArray> keys, | 481 Handle<FixedArray> keys, |
482 Handle<Map> map); | 482 Handle<Map> map); |
483 }; | 483 }; |
484 | 484 |
485 | 485 |
486 } } // namespace v8::internal | 486 } } // namespace v8::internal |
487 | 487 |
488 #endif // V8_FACTORY_H_ | 488 #endif // V8_FACTORY_H_ |
OLD | NEW |