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 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
591 | 591 |
592 Handle<String> hidden_string() { | 592 Handle<String> hidden_string() { |
593 return Handle<String>(&isolate()->heap()->hidden_string_); | 593 return Handle<String>(&isolate()->heap()->hidden_string_); |
594 } | 594 } |
595 | 595 |
596 // Allocates a new SharedFunctionInfo object. | 596 // Allocates a new SharedFunctionInfo object. |
597 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 597 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
598 Handle<String> name, | 598 Handle<String> name, |
599 int number_of_literals, | 599 int number_of_literals, |
600 bool is_generator, | 600 bool is_generator, |
| 601 bool is_arrow, |
601 Handle<Code> code, | 602 Handle<Code> code, |
602 Handle<ScopeInfo> scope_info, | 603 Handle<ScopeInfo> scope_info, |
603 Handle<FixedArray> feedback_vector); | 604 Handle<FixedArray> feedback_vector); |
604 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 605 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
605 MaybeHandle<Code> code); | 606 MaybeHandle<Code> code); |
606 | 607 |
607 // Allocate a new type feedback vector | 608 // Allocate a new type feedback vector |
608 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); | 609 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); |
609 | 610 |
610 // Allocates a new JSMessageObject object. | 611 // Allocates a new JSMessageObject object. |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 PretenureFlag pretenure = TENURED); | 695 PretenureFlag pretenure = TENURED); |
695 | 696 |
696 Handle<JSFunction> NewFunction(Handle<Map> map, | 697 Handle<JSFunction> NewFunction(Handle<Map> map, |
697 Handle<String> name, | 698 Handle<String> name, |
698 MaybeHandle<Code> maybe_code); | 699 MaybeHandle<Code> maybe_code); |
699 }; | 700 }; |
700 | 701 |
701 } } // namespace v8::internal | 702 } } // namespace v8::internal |
702 | 703 |
703 #endif // V8_FACTORY_H_ | 704 #endif // V8_FACTORY_H_ |
OLD | NEW |