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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
607 } | 607 } |
608 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) | 608 PRIVATE_SYMBOL_LIST(SYMBOL_ACCESSOR) |
609 #undef SYMBOL_ACCESSOR | 609 #undef SYMBOL_ACCESSOR |
610 | 610 |
611 #define SYMBOL_ACCESSOR(name, description) \ | 611 #define SYMBOL_ACCESSOR(name, description) \ |
612 inline Handle<Symbol> name() { \ | 612 inline Handle<Symbol> name() { \ |
613 return Handle<Symbol>(bit_cast<Symbol**>( \ | 613 return Handle<Symbol>(bit_cast<Symbol**>( \ |
614 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ | 614 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ |
615 } | 615 } |
616 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) | 616 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) |
| 617 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) |
617 #undef SYMBOL_ACCESSOR | 618 #undef SYMBOL_ACCESSOR |
618 | 619 |
619 // Allocates a new SharedFunctionInfo object. | 620 // Allocates a new SharedFunctionInfo object. |
620 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 621 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
621 Handle<String> name, int number_of_literals, FunctionKind kind, | 622 Handle<String> name, int number_of_literals, FunctionKind kind, |
622 Handle<Code> code, Handle<ScopeInfo> scope_info, | 623 Handle<Code> code, Handle<ScopeInfo> scope_info, |
623 Handle<TypeFeedbackVector> feedback_vector); | 624 Handle<TypeFeedbackVector> feedback_vector); |
624 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 625 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
625 MaybeHandle<Code> code); | 626 MaybeHandle<Code> code); |
626 | 627 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
711 // size, but keeping the original prototype. The receiver must have at least | 712 // size, but keeping the original prototype. The receiver must have at least |
712 // the size of the new object. The object is reinitialized and behaves as an | 713 // the size of the new object. The object is reinitialized and behaves as an |
713 // object that has been freshly allocated. | 714 // object that has been freshly allocated. |
714 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 715 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
715 }; | 716 }; |
716 | 717 |
717 } // namespace internal | 718 } // namespace internal |
718 } // namespace v8 | 719 } // namespace v8 |
719 | 720 |
720 #endif // V8_FACTORY_H_ | 721 #endif // V8_FACTORY_H_ |
OLD | NEW |