| 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 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 | 598 |
| 599 // Allocates a new JSMessageObject object. | 599 // Allocates a new JSMessageObject object. |
| 600 Handle<JSMessageObject> NewJSMessageObject( | 600 Handle<JSMessageObject> NewJSMessageObject( |
| 601 Handle<String> type, | 601 Handle<String> type, |
| 602 Handle<JSArray> arguments, | 602 Handle<JSArray> arguments, |
| 603 int start_position, | 603 int start_position, |
| 604 int end_position, | 604 int end_position, |
| 605 Handle<Object> script, | 605 Handle<Object> script, |
| 606 Handle<Object> stack_frames); | 606 Handle<Object> stack_frames); |
| 607 | 607 |
| 608 Handle<SeededNumberDictionary> DictionaryAtNumberPut( | |
| 609 Handle<SeededNumberDictionary>, | |
| 610 uint32_t key, | |
| 611 Handle<Object> value); | |
| 612 | |
| 613 Handle<UnseededNumberDictionary> DictionaryAtNumberPut( | |
| 614 Handle<UnseededNumberDictionary>, | |
| 615 uint32_t key, | |
| 616 Handle<Object> value); | |
| 617 | |
| 618 #ifdef ENABLE_DEBUGGER_SUPPORT | 608 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 619 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 609 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
| 620 #endif | 610 #endif |
| 621 | 611 |
| 622 // Return a map using the map cache in the native context. | 612 // Return a map using the map cache in the native context. |
| 623 // The key the an ordered set of property names. | 613 // The key the an ordered set of property names. |
| 624 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, | 614 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> context, |
| 625 Handle<FixedArray> keys); | 615 Handle<FixedArray> keys); |
| 626 | 616 |
| 627 // Creates a new FixedArray that holds the data associated with the | 617 // Creates a new FixedArray that holds the data associated with the |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 689 // the string representation of the number. Otherwise return undefined. | 679 // the string representation of the number. Otherwise return undefined. |
| 690 Handle<Object> GetNumberStringCache(Handle<Object> number); | 680 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 691 | 681 |
| 692 // Update the cache with a new number-string pair. | 682 // Update the cache with a new number-string pair. |
| 693 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 683 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 694 }; | 684 }; |
| 695 | 685 |
| 696 } } // namespace v8::internal | 686 } } // namespace v8::internal |
| 697 | 687 |
| 698 #endif // V8_FACTORY_H_ | 688 #endif // V8_FACTORY_H_ |
| OLD | NEW |