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