| 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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 445 // constructor. The object is reinitialized and behaves as an | 445 // constructor. The object is reinitialized and behaves as an |
| 446 // object that has been freshly allocated using the constructor. | 446 // object that has been freshly allocated using the constructor. |
| 447 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, | 447 void ReinitializeJSGlobalProxy(Handle<JSGlobalProxy> global, |
| 448 Handle<JSFunction> constructor); | 448 Handle<JSFunction> constructor); |
| 449 | 449 |
| 450 // Change the type of the argument into a JS object/function and reinitialize. | 450 // Change the type of the argument into a JS object/function and reinitialize. |
| 451 void BecomeJSObject(Handle<JSReceiver> object); | 451 void BecomeJSObject(Handle<JSReceiver> object); |
| 452 void BecomeJSFunction(Handle<JSReceiver> object); | 452 void BecomeJSFunction(Handle<JSReceiver> object); |
| 453 | 453 |
| 454 Handle<JSFunction> NewFunction(Handle<String> name, | 454 Handle<JSFunction> NewFunction(Handle<String> name, |
| 455 MaybeHandle<Object> maybe_prototype, | 455 MaybeHandle<Code> maybe_code, |
| 456 MaybeHandle<Code> maybe_code); | 456 MaybeHandle<Object> maybe_prototype = |
| 457 MaybeHandle<Object>()); |
| 457 Handle<JSFunction> NewFunction(Handle<String> name); | 458 Handle<JSFunction> NewFunction(Handle<String> name); |
| 458 | 459 |
| 459 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( | 460 Handle<JSFunction> NewFunctionFromSharedFunctionInfo( |
| 460 Handle<SharedFunctionInfo> function_info, | 461 Handle<SharedFunctionInfo> function_info, |
| 461 Handle<Context> context, | 462 Handle<Context> context, |
| 462 PretenureFlag pretenure = TENURED); | 463 PretenureFlag pretenure = TENURED); |
| 463 | 464 |
| 464 Handle<JSFunction> NewFunction(MaybeHandle<Object> maybe_prototype, | 465 Handle<JSFunction> NewFunction(Handle<Object> maybe_prototype, |
| 465 Handle<String> name, | 466 Handle<String> name, |
| 466 InstanceType type, | 467 InstanceType type, |
| 467 int instance_size, | 468 int instance_size, |
| 468 Handle<Code> code); | 469 Handle<Code> code); |
| 469 Handle<JSFunction> NewFunction(Handle<String> name, | 470 Handle<JSFunction> NewFunction(Handle<String> name, |
| 470 InstanceType type, | 471 InstanceType type, |
| 471 int instance_size, | 472 int instance_size, |
| 472 Handle<Code> code); | 473 Handle<Code> code); |
| 473 | 474 |
| 474 // Create a serialized scope info. | 475 // Create a serialized scope info. |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 684 // the string representation of the number. Otherwise return undefined. | 685 // the string representation of the number. Otherwise return undefined. |
| 685 Handle<Object> GetNumberStringCache(Handle<Object> number); | 686 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 686 | 687 |
| 687 // Update the cache with a new number-string pair. | 688 // Update the cache with a new number-string pair. |
| 688 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 689 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 689 }; | 690 }; |
| 690 | 691 |
| 691 } } // namespace v8::internal | 692 } } // namespace v8::internal |
| 692 | 693 |
| 693 #endif // V8_FACTORY_H_ | 694 #endif // V8_FACTORY_H_ |
| OLD | NEW |