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