| 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 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 bool force_initial_map); | 435 bool force_initial_map); |
| 436 | 436 |
| 437 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, | 437 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, |
| 438 InstanceType type, | 438 InstanceType type, |
| 439 int instance_size, | 439 int instance_size, |
| 440 Handle<JSObject> prototype, | 440 Handle<JSObject> prototype, |
| 441 Handle<Code> code, | 441 Handle<Code> code, |
| 442 bool force_initial_map); | 442 bool force_initial_map); |
| 443 | 443 |
| 444 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 444 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
| 445 StrictMode strict_mode); | |
| 446 | |
| 447 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | |
| 448 Handle<Code> code); | 445 Handle<Code> code); |
| 449 | 446 |
| 450 // Create a serialized scope info. | 447 // Create a serialized scope info. |
| 451 Handle<ScopeInfo> NewScopeInfo(int length); | 448 Handle<ScopeInfo> NewScopeInfo(int length); |
| 452 | 449 |
| 453 // Create an External object for V8's external API. | 450 // Create an External object for V8's external API. |
| 454 Handle<JSObject> NewExternal(void* value); | 451 Handle<JSObject> NewExternal(void* value); |
| 455 | 452 |
| 456 // The reference to the Code object is stored in self_reference. | 453 // The reference to the Code object is stored in self_reference. |
| 457 // This allows generated code to reference its own Code object | 454 // This allows generated code to reference its own Code object |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 // the string representation of the number. Otherwise return undefined. | 656 // the string representation of the number. Otherwise return undefined. |
| 660 Handle<Object> GetNumberStringCache(Handle<Object> number); | 657 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 661 | 658 |
| 662 // Update the cache with a new number-string pair. | 659 // Update the cache with a new number-string pair. |
| 663 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 660 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 664 }; | 661 }; |
| 665 | 662 |
| 666 } } // namespace v8::internal | 663 } } // namespace v8::internal |
| 667 | 664 |
| 668 #endif // V8_FACTORY_H_ | 665 #endif // V8_FACTORY_H_ |
| OLD | NEW |