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