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 | |
651 Handle<String> hidden_string() { | 647 Handle<String> hidden_string() { |
652 return Handle<String>(&isolate()->heap()->hidden_string_); | 648 return Handle<String>(&isolate()->heap()->hidden_string_); |
653 } | 649 } |
654 | 650 |
655 // Allocates a new SharedFunctionInfo object. | 651 // Allocates a new SharedFunctionInfo object. |
656 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 652 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
657 Handle<String> name, int number_of_literals, FunctionKind kind, | 653 Handle<String> name, int number_of_literals, FunctionKind kind, |
658 Handle<Code> code, Handle<ScopeInfo> scope_info, | 654 Handle<Code> code, Handle<ScopeInfo> scope_info, |
659 Handle<TypeFeedbackVector> feedback_vector); | 655 Handle<TypeFeedbackVector> feedback_vector); |
660 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 656 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
750 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 746 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
751 // size, but keeping the original prototype. The receiver must have at least | 747 // size, but keeping the original prototype. The receiver must have at least |
752 // the size of the new object. The object is reinitialized and behaves as an | 748 // the size of the new object. The object is reinitialized and behaves as an |
753 // object that has been freshly allocated. | 749 // object that has been freshly allocated. |
754 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 750 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
755 }; | 751 }; |
756 | 752 |
757 } } // namespace v8::internal | 753 } } // namespace v8::internal |
758 | 754 |
759 #endif // V8_FACTORY_H_ | 755 #endif // V8_FACTORY_H_ |
OLD | NEW |