| 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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 479 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, | 479 Handle<JSFunction> NewFunctionWithPrototype(Handle<String> name, |
| 480 InstanceType type, | 480 InstanceType type, |
| 481 int instance_size, | 481 int instance_size, |
| 482 Handle<JSObject> prototype, | 482 Handle<JSObject> prototype, |
| 483 Handle<Code> code, | 483 Handle<Code> code, |
| 484 bool force_initial_map); | 484 bool force_initial_map); |
| 485 | 485 |
| 486 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, | 486 Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name, |
| 487 Handle<Code> code); | 487 Handle<Code> code); |
| 488 | 488 |
| 489 Handle<String> NumberToString(Handle<Object> number); | 489 Handle<String> NumberToString(Handle<Object> number, |
| 490 bool check_number_string_cache = true); |
| 490 Handle<String> Uint32ToString(uint32_t value); | 491 Handle<String> Uint32ToString(uint32_t value); |
| 491 | 492 |
| 492 enum ApiInstanceType { | 493 enum ApiInstanceType { |
| 493 JavaScriptObject, | 494 JavaScriptObject, |
| 494 InnerGlobalObject, | 495 InnerGlobalObject, |
| 495 OuterGlobalObject | 496 OuterGlobalObject |
| 496 }; | 497 }; |
| 497 | 498 |
| 498 Handle<JSFunction> CreateApiFunction( | 499 Handle<JSFunction> CreateApiFunction( |
| 499 Handle<FunctionTemplateInfo> data, | 500 Handle<FunctionTemplateInfo> data, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 610 |
| 610 // Update the map cache in the native context with (keys, map) | 611 // Update the map cache in the native context with (keys, map) |
| 611 Handle<MapCache> AddToMapCache(Handle<Context> context, | 612 Handle<MapCache> AddToMapCache(Handle<Context> context, |
| 612 Handle<FixedArray> keys, | 613 Handle<FixedArray> keys, |
| 613 Handle<Map> map); | 614 Handle<Map> map); |
| 614 }; | 615 }; |
| 615 | 616 |
| 616 } } // namespace v8::internal | 617 } } // namespace v8::internal |
| 617 | 618 |
| 618 #endif // V8_FACTORY_H_ | 619 #endif // V8_FACTORY_H_ |
| OLD | NEW |