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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 } | 593 } |
594 | 594 |
595 Handle<String> hidden_string() { | 595 Handle<String> hidden_string() { |
596 return Handle<String>(&isolate()->heap()->hidden_string_); | 596 return Handle<String>(&isolate()->heap()->hidden_string_); |
597 } | 597 } |
598 | 598 |
599 // Allocates a new SharedFunctionInfo object. | 599 // Allocates a new SharedFunctionInfo object. |
600 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 600 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
601 Handle<String> name, int number_of_literals, FunctionKind kind, | 601 Handle<String> name, int number_of_literals, FunctionKind kind, |
602 Handle<Code> code, Handle<ScopeInfo> scope_info, | 602 Handle<Code> code, Handle<ScopeInfo> scope_info, |
603 Handle<FixedArray> feedback_vector); | 603 Handle<TypeFeedbackVector> feedback_vector); |
604 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, | 604 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, |
605 MaybeHandle<Code> code); | 605 MaybeHandle<Code> code); |
606 | 606 |
607 // Allocate a new type feedback vector | 607 // Allocate a new type feedback vector |
608 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); | 608 Handle<TypeFeedbackVector> NewTypeFeedbackVector(int slot_count); |
609 | 609 |
610 // Allocates a new JSMessageObject object. | 610 // Allocates a new JSMessageObject object. |
611 Handle<JSMessageObject> NewJSMessageObject( | 611 Handle<JSMessageObject> NewJSMessageObject( |
612 Handle<String> type, | 612 Handle<String> type, |
613 Handle<JSArray> arguments, | 613 Handle<JSArray> arguments, |
614 int start_position, | 614 int start_position, |
615 int end_position, | 615 int end_position, |
616 Handle<Object> script, | 616 Handle<Object> script, |
617 Handle<Object> stack_frames); | 617 Handle<Object> stack_frames); |
618 | 618 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
700 // Reinitialize a JSProxy into an (empty) JS object of respective type and | 700 // Reinitialize a JSProxy into an (empty) JS object of respective type and |
701 // size, but keeping the original prototype. The receiver must have at least | 701 // size, but keeping the original prototype. The receiver must have at least |
702 // the size of the new object. The object is reinitialized and behaves as an | 702 // the size of the new object. The object is reinitialized and behaves as an |
703 // object that has been freshly allocated. | 703 // object that has been freshly allocated. |
704 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); | 704 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); |
705 }; | 705 }; |
706 | 706 |
707 } } // namespace v8::internal | 707 } } // namespace v8::internal |
708 | 708 |
709 #endif // V8_FACTORY_H_ | 709 #endif // V8_FACTORY_H_ |
OLD | NEW |