| 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 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 478 bool read_only_prototype = false); | 478 bool read_only_prototype = false); |
| 479 Handle<JSFunction> NewFunction(Handle<String> name); | 479 Handle<JSFunction> NewFunction(Handle<String> name); |
| 480 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 480 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
| 481 Handle<Code> code); | 481 Handle<Code> code); |
| 482 | 482 |
| 483 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 483 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 484 Handle<SharedFunctionInfo> function_info, | 484 Handle<SharedFunctionInfo> function_info, |
| 485 Handle<Context> context, | 485 Handle<Context> context, |
| 486 PretenureFlag pretenure = TENURED); | 486 PretenureFlag pretenure = TENURED); |
| 487 | 487 |
| 488 Handle<JSFunction> NewFunction(Handle<String> name, | 488 Handle<JSFunction> NewFunction(Handle<String> name, Handle<Code> code, |
| 489 Handle<Code> code, | 489 Handle<Object> prototype, InstanceType type, |
| 490 Handle<Object> prototype, | |
| 491 InstanceType type, | |
| 492 int instance_size, | 490 int instance_size, |
| 493 bool read_only_prototype = false); | 491 bool read_only_prototype = false, |
| 492 bool install_constructor = false); |
| 494 Handle<JSFunction> NewFunction(Handle<String> name, | 493 Handle<JSFunction> NewFunction(Handle<String> name, |
| 495 Handle<Code> code, | 494 Handle<Code> code, |
| 496 InstanceType type, | 495 InstanceType type, |
| 497 int instance_size); | 496 int instance_size); |
| 498 | 497 |
| 499 // Create a serialized scope info. | 498 // Create a serialized scope info. |
| 500 Handle<ScopeInfo> NewScopeInfo(int length); | 499 Handle<ScopeInfo> NewScopeInfo(int length); |
| 501 | 500 |
| 502 // Create an External object for V8's external API. | 501 // Create an External object for V8's external API. |
| 503 Handle<JSObject> NewExternal(void* value); | 502 Handle<JSObject> NewExternal(void* value); |
| (...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 726 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 725 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 727 // size, but keeping the original prototype. The receiver must have at least | 726 // size, but keeping the original prototype. The receiver must have at least |
| 728 // the size of the new object. The object is reinitialized and behaves as an | 727 // the size of the new object. The object is reinitialized and behaves as an |
| 729 // object that has been freshly allocated. | 728 // object that has been freshly allocated. |
| 730 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 729 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 731 }; | 730 }; |
| 732 | 731 |
| 733 } } // namespace v8::internal | 732 } } // namespace v8::internal |
| 734 | 733 |
| 735 #endif // V8_FACTORY_H_ | 734 #endif // V8_FACTORY_H_ |
| OLD | NEW |