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 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 isolate()->heap()->set_string_table(*table); | 603 isolate()->heap()->set_string_table(*table); |
604 } | 604 } |
605 | 605 |
606 Handle<String> hidden_string() { | 606 Handle<String> hidden_string() { |
607 return Handle<String>(&isolate()->heap()->hidden_string_); | 607 return Handle<String>(&isolate()->heap()->hidden_string_); |
608 } | 608 } |
609 | 609 |
610 // Allocates a new SharedFunctionInfo object. | 610 // Allocates a new SharedFunctionInfo object. |
611 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 611 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
612 Handle<String> name, int number_of_literals, bool is_generator, | 612 Handle<String> name, int number_of_literals, bool is_generator, |
613 bool is_arrow, Handle<Code> code, Handle<ScopeInfo> scope_info, | 613 bool is_arrow, bool is_concise_method, Handle<Code> code, |
614 Handle<FixedArray> feedback_vector); | 614 Handle<ScopeInfo> scope_info, Handle<FixedArray> feedback_vector); |
615 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 615 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
616 MaybeHandle<Code> code); | 616 MaybeHandle<Code> code); |
617 | 617 |
618 // Allocate a new type feedback vector | 618 // Allocate a new type feedback vector |
619 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); | 619 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); |
620 | 620 |
621 // Allocates a new JSMessageObject object. | 621 // Allocates a new JSMessageObject object. |
622 Handle<JSMessageObject> NewJSMessageObject( | 622 Handle<JSMessageObject> NewJSMessageObject( |
623 Handle<String> type, | 623 Handle<String> type, |
624 Handle<JSArray> arguments, | 624 Handle<JSArray> arguments, |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 PretenureFlag pretenure = TENURED); | 705 PretenureFlag pretenure = TENURED); |
706 | 706 |
707 Handle<JSFunction> NewFunction(Handle<Map> map, | 707 Handle<JSFunction> NewFunction(Handle<Map> map, |
708 Handle<String> name, | 708 Handle<String> name, |
709 MaybeHandle<Code> maybe_code); | 709 MaybeHandle<Code> maybe_code); |
710 }; | 710 }; |
711 | 711 |
712 } } // namespace v8::internal | 712 } } // namespace v8::internal |
713 | 713 |
714 #endif // V8_FACTORY_H_ | 714 #endif // V8_FACTORY_H_ |
OLD | NEW |