| 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 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 618 #undef SYMBOL_ACCESSOR | 618 #undef SYMBOL_ACCESSOR |
| 619 | 619 |
| 620 inline void set_string_table(Handle<StringTable> table) { | 620 inline void set_string_table(Handle<StringTable> table) { |
| 621 isolate()->heap()->set_string_table(*table); | 621 isolate()->heap()->set_string_table(*table); |
| 622 } | 622 } |
| 623 | 623 |
| 624 inline void set_weak_stack_trace_list(Handle<WeakFixedArray> list) { | 624 inline void set_weak_stack_trace_list(Handle<WeakFixedArray> list) { |
| 625 isolate()->heap()->set_weak_stack_trace_list(*list); | 625 isolate()->heap()->set_weak_stack_trace_list(*list); |
| 626 } | 626 } |
| 627 | 627 |
| 628 Handle<String> hidden_string() { | |
| 629 return Handle<String>(&isolate()->heap()->hidden_string_); | |
| 630 } | |
| 631 | |
| 632 // Allocates a new SharedFunctionInfo object. | 628 // Allocates a new SharedFunctionInfo object. |
| 633 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 629 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 634 Handle<String> name, int number_of_literals, FunctionKind kind, | 630 Handle<String> name, int number_of_literals, FunctionKind kind, |
| 635 Handle<Code> code, Handle<ScopeInfo> scope_info, | 631 Handle<Code> code, Handle<ScopeInfo> scope_info, |
| 636 Handle<TypeFeedbackVector> feedback_vector); | 632 Handle<TypeFeedbackVector> feedback_vector); |
| 637 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 633 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
| 638 MaybeHandle<Code> code); | 634 MaybeHandle<Code> code); |
| 639 | 635 |
| 640 // Allocate a new type feedback vector | 636 // Allocate a new type feedback vector |
| 641 template <typename Spec> | 637 template <typename Spec> |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 723 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
| 728 // size, but keeping the original prototype. The receiver must have at least | 724 // size, but keeping the original prototype. The receiver must have at least |
| 729 // the size of the new object. The object is reinitialized and behaves as an | 725 // the size of the new object. The object is reinitialized and behaves as an |
| 730 // object that has been freshly allocated. | 726 // object that has been freshly allocated. |
| 731 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 727 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
| 732 }; | 728 }; |
| 733 | 729 |
| 734 } } // namespace v8::internal | 730 } } // namespace v8::internal |
| 735 | 731 |
| 736 #endif // V8_FACTORY_H_ | 732 #endif // V8_FACTORY_H_ |
| OLD | NEW |