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 "isolate.h" | 8 #include "isolate.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 InstanceType type, | 469 InstanceType type, |
470 int instance_size, | 470 int instance_size, |
471 Handle<Code> code, | 471 Handle<Code> code, |
472 bool force_initial_map); | 472 bool force_initial_map); |
473 Handle<JSFunction> NewFunction(Handle<String> name, | 473 Handle<JSFunction> NewFunction(Handle<String> name, |
474 InstanceType type, | 474 InstanceType type, |
475 int instance_size, | 475 int instance_size, |
476 Handle<Code> code, | 476 Handle<Code> code, |
477 bool force_initial_map); | 477 bool force_initial_map); |
478 | 478 |
479 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, | |
480 InstanceType type, | |
481 int instance_size, | |
482 Handle<JSObject> prototype, | |
483 Handle<Code> code, | |
484 bool force_initial_map); | |
485 | |
486 // Create a serialized scope info. | 479 // Create a serialized scope info. |
487 Handle<ScopeInfo> NewScopeInfo(int length); | 480 Handle<ScopeInfo> NewScopeInfo(int length); |
488 | 481 |
489 // Create an External object for V8's external API. | 482 // Create an External object for V8's external API. |
490 Handle<JSObject> NewExternal(void* value); | 483 Handle<JSObject> NewExternal(void* value); |
491 | 484 |
492 // The reference to the Code object is stored in self_reference. | 485 // The reference to the Code object is stored in self_reference. |
493 // This allows generated code to reference its own Code object | 486 // This allows generated code to reference its own Code object |
494 // by containing this handle. | 487 // by containing this handle. |
495 Handle<Code> NewCode(const CodeDesc& desc, | 488 Handle<Code> NewCode(const CodeDesc& desc, |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
696 // the string representation of the number. Otherwise return undefined. | 689 // the string representation of the number. Otherwise return undefined. |
697 Handle<Object> GetNumberStringCache(Handle<Object> number); | 690 Handle<Object> GetNumberStringCache(Handle<Object> number); |
698 | 691 |
699 // Update the cache with a new number-string pair. | 692 // Update the cache with a new number-string pair. |
700 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 693 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
701 }; | 694 }; |
702 | 695 |
703 } } // namespace v8::internal | 696 } } // namespace v8::internal |
704 | 697 |
705 #endif // V8_FACTORY_H_ | 698 #endif // V8_FACTORY_H_ |
OLD | NEW |