OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
7 | 7 |
8 #include "src/isolate.h" | 8 #include "src/isolate.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
468 void BecomeJSFunction(Handle<JSReceiver> object); | 468 void BecomeJSFunction(Handle<JSReceiver> object); |
469 | 469 |
470 Handle<JSFunction> NewFunction(Handle<String> name, | 470 Handle<JSFunction> NewFunction(Handle<String> name, |
471 Handle<Code> code, | 471 Handle<Code> code, |
472 Handle<Object> prototype, | 472 Handle<Object> prototype, |
473 bool read_only_prototype = false); | 473 bool read_only_prototype = false); |
474 Handle<JSFunction> NewFunction(Handle<String> name); | 474 Handle<JSFunction> NewFunction(Handle<String> name); |
475 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 475 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
476 Handle<Code> code); | 476 Handle<Code> code); |
477 | 477 |
| 478 Handle<JSFunction> NewFunctionWithMapFromSharedFunctionInfo( |
| 479 Handle<Map> map, |
| 480 Handle<SharedFunctionInfo> function_info, |
| 481 Handle<Context> context, |
| 482 PretenureFlag pretenure = TENURED); |
| 483 |
| 484 |
478 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 485 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
479 Handle<SharedFunctionInfo> function_info, | 486 Handle<SharedFunctionInfo> function_info, |
480 Handle<Context> context, | 487 Handle<Context> context, |
481 PretenureFlag pretenure = TENURED); | 488 PretenureFlag pretenure = TENURED); |
482 | 489 |
483 Handle<JSFunction> NewFunction(Handle<String> name, | 490 Handle<JSFunction> NewFunction(Handle<String> name, |
484 Handle<Code> code, | 491 Handle<Code> code, |
485 Handle<Object> prototype, | 492 Handle<Object> prototype, |
486 InstanceType type, | 493 InstanceType type, |
487 int instance_size, | 494 int instance_size, |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 PretenureFlag pretenure = TENURED); | 712 PretenureFlag pretenure = TENURED); |
706 | 713 |
707 Handle<JSFunction> NewFunction(Handle<Map> map, | 714 Handle<JSFunction> NewFunction(Handle<Map> map, |
708 Handle<String> name, | 715 Handle<String> name, |
709 MaybeHandle<Code> maybe_code); | 716 MaybeHandle<Code> maybe_code); |
710 }; | 717 }; |
711 | 718 |
712 } } // namespace v8::internal | 719 } } // namespace v8::internal |
713 | 720 |
714 #endif // V8_FACTORY_H_ | 721 #endif // V8_FACTORY_H_ |
OLD | NEW |