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 "src/isolate.h" | 8 #include "src/isolate.h" |
9 #include "src/messages.h" | 9 #include "src/messages.h" |
10 | 10 |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
637 return Handle<Symbol>(bit_cast<Symbol**>( \ | 637 return Handle<Symbol>(bit_cast<Symbol**>( \ |
638 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 638 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
639 } | 639 } |
640 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 640 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
641 #undef SYMBOL_ACCESSOR | 641 #undef SYMBOL_ACCESSOR |
642 | 642 |
643 inline void set_string_table(Handle<StringTable> table) { | 643 inline void set_string_table(Handle<StringTable> table) { |
644 isolate()->heap()->set_string_table(*table); | 644 isolate()->heap()->set_string_table(*table); |
645 } | 645 } |
646 | 646 |
| 647 inline void set_weak_stack_trace_list(Handle<WeakFixedArray> list) { |
| 648 isolate()->heap()->set_weak_stack_trace_list(*list); |
| 649 } |
| 650 |
647 Handle<String> hidden_string() { | 651 Handle<String> hidden_string() { |
648 return Handle<String>(&isolate()->heap()->hidden_string_); | 652 return Handle<String>(&isolate()->heap()->hidden_string_); |
649 } | 653 } |
650 | 654 |
651 // Allocates a new SharedFunctionInfo object. | 655 // Allocates a new SharedFunctionInfo object. |
652 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 656 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
653 Handle<String> name, int number_of_literals, FunctionKind kind, | 657 Handle<String> name, int number_of_literals, FunctionKind kind, |
654 Handle<Code> code, Handle<ScopeInfo> scope_info, | 658 Handle<Code> code, Handle<ScopeInfo> scope_info, |
655 Handle<TypeFeedbackVector> feedback_vector); | 659 Handle<TypeFeedbackVector> feedback_vector); |
656 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 660 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 750 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
747 // size, but keeping the original prototype. The receiver must have at least | 751 // size, but keeping the original prototype. The receiver must have at least |
748 // the size of the new object. The object is reinitialized and behaves as an | 752 // the size of the new object. The object is reinitialized and behaves as an |
749 // object that has been freshly allocated. | 753 // object that has been freshly allocated. |
750 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 754 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
751 }; | 755 }; |
752 | 756 |
753 } } // namespace v8::internal | 757 } } // namespace v8::internal |
754 | 758 |
755 #endif // V8_FACTORY_H_ | 759 #endif // V8_FACTORY_H_ |
OLD | NEW |