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