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 #include "src/messages.h" | 9 #include "src/messages.h" |
10 #include "src/type-feedback-vector.h" | 10 #include "src/type-feedback-vector.h" |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 498 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
499 Handle<Object> prototype, | 499 Handle<Object> prototype, |
500 bool read_only_prototype = false, | 500 bool read_only_prototype = false, |
501 bool is_strict = false); | 501 bool is_strict = false); |
502 Handle<JSFunction> NewFunction(Handle<String> name); | 502 Handle<JSFunction> NewFunction(Handle<String> name); |
503 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 503 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
504 Handle<Code> code, | 504 Handle<Code> code, |
505 bool is_strict = false); | 505 bool is_strict = false); |
506 | 506 |
507 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 507 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
508 Handle<SharedFunctionInfo> function_info, | 508 Handle<Map> initial_map, Handle<SharedFunctionInfo> function_info, |
509 Handle<Context> context, | 509 Handle<Context> context, PretenureFlag pretenure = TENURED); |
| 510 |
| 511 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 512 Handle<SharedFunctionInfo> function_info, Handle<Context> context, |
510 PretenureFlag pretenure = TENURED); | 513 PretenureFlag pretenure = TENURED); |
511 | 514 |
512 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, | 515 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
513 Handle<Object> prototype, InstanceType type, | 516 Handle<Object> prototype, InstanceType type, |
514 int instance_size, | 517 int instance_size, |
515 bool read_only_prototype = false, | 518 bool read_only_prototype = false, |
516 bool install_constructor = false, | 519 bool install_constructor = false, |
517 bool is_strict = false); | 520 bool is_strict = false); |
518 Handle<JSFunction> NewFunction(Handle<String> name, | 521 Handle<JSFunction> NewFunction(Handle<String> name, |
519 Handle<Code> code, | 522 Handle<Code> code, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
713 // size, but keeping the original prototype. The receiver must have at least | 716 // size, but keeping the original prototype. The receiver must have at least |
714 // the size of the new object. The object is reinitialized and behaves as an | 717 // the size of the new object. The object is reinitialized and behaves as an |
715 // object that has been freshly allocated. | 718 // object that has been freshly allocated. |
716 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 719 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
717 }; | 720 }; |
718 | 721 |
719 } // namespace internal | 722 } // namespace internal |
720 } // namespace v8 | 723 } // namespace v8 |
721 | 724 |
722 #endif // V8_FACTORY_H_ | 725 #endif // V8_FACTORY_H_ |
OLD | NEW |