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