| 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 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 458 | 458 |
| 459 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 459 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 460 Handle<SharedFunctionInfo> function_info, | 460 Handle<SharedFunctionInfo> function_info, |
| 461 Handle<Context> context, | 461 Handle<Context> context, |
| 462 PretenureFlag pretenure = TENURED); | 462 PretenureFlag pretenure = TENURED); |
| 463 | 463 |
| 464 Handle<JSFunction> NewFunction(MaybeHandle<Object> maybe_prototype, | 464 Handle<JSFunction> NewFunction(MaybeHandle<Object> maybe_prototype, |
| 465 Handle<String> name, | 465 Handle<String> name, |
| 466 InstanceType type, | 466 InstanceType type, |
| 467 int instance_size, | 467 int instance_size, |
| 468 Handle<Code> code, | 468 Handle<Code> code); |
| 469 bool force_initial_map); | |
| 470 Handle<JSFunction> NewFunction(Handle<String> name, | 469 Handle<JSFunction> NewFunction(Handle<String> name, |
| 471 InstanceType type, | 470 InstanceType type, |
| 472 int instance_size, | 471 int instance_size, |
| 473 Handle<Code> code, | 472 Handle<Code> code); |
| 474 bool force_initial_map); | |
| 475 | 473 |
| 476 // Create a serialized scope info. | 474 // Create a serialized scope info. |
| 477 Handle<ScopeInfo> NewScopeInfo(int length); | 475 Handle<ScopeInfo> NewScopeInfo(int length); |
| 478 | 476 |
| 479 // Create an External object for V8's external API. | 477 // Create an External object for V8's external API. |
| 480 Handle<JSObject> NewExternal(void* value); | 478 Handle<JSObject> NewExternal(void* value); |
| 481 | 479 |
| 482 // The reference to the Code object is stored in self_reference. | 480 // The reference to the Code object is stored in self_reference. |
| 483 // This allows generated code to reference its own Code object | 481 // This allows generated code to reference its own Code object |
| 484 // by containing this handle. | 482 // by containing this handle. |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 // the string representation of the number. Otherwise return undefined. | 684 // the string representation of the number. Otherwise return undefined. |
| 687 Handle<Object> GetNumberStringCache(Handle<Object> number); | 685 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 688 | 686 |
| 689 // Update the cache with a new number-string pair. | 687 // Update the cache with a new number-string pair. |
| 690 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 688 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 691 }; | 689 }; |
| 692 | 690 |
| 693 } } // namespace v8::internal | 691 } } // namespace v8::internal |
| 694 | 692 |
| 695 #endif // V8_FACTORY_H_ | 693 #endif // V8_FACTORY_H_ |
| OLD | NEW |