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 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
582 // Allocates a new SharedFunctionInfo object. | 582 // Allocates a new SharedFunctionInfo object. |
583 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 583 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
584 Handle<String> name, | 584 Handle<String> name, |
585 int number_of_literals, | 585 int number_of_literals, |
586 bool is_generator, | 586 bool is_generator, |
587 Handle<Code> code, | 587 Handle<Code> code, |
588 Handle<ScopeInfo> scope_info, | 588 Handle<ScopeInfo> scope_info, |
589 Handle<FixedArray> feedback_vector); | 589 Handle<FixedArray> feedback_vector); |
590 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 590 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
591 | 591 |
| 592 // Allocate a new type feedback vector |
| 593 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); |
| 594 |
592 // Allocates a new JSMessageObject object. | 595 // Allocates a new JSMessageObject object. |
593 Handle<JSMessageObject> NewJSMessageObject( | 596 Handle<JSMessageObject> NewJSMessageObject( |
594 Handle<String> type, | 597 Handle<String> type, |
595 Handle<JSArray> arguments, | 598 Handle<JSArray> arguments, |
596 int start_position, | 599 int start_position, |
597 int end_position, | 600 int end_position, |
598 Handle<Object> script, | 601 Handle<Object> script, |
599 Handle<Object> stack_frames); | 602 Handle<Object> stack_frames); |
600 | 603 |
601 Handle<SeededNumberDictionary> DictionaryAtNumberPut( | 604 Handle<SeededNumberDictionary> DictionaryAtNumberPut( |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 // the string representation of the number. Otherwise return undefined. | 685 // the string representation of the number. Otherwise return undefined. |
683 Handle<Object> GetNumberStringCache(Handle<Object> number); | 686 Handle<Object> GetNumberStringCache(Handle<Object> number); |
684 | 687 |
685 // Update the cache with a new number-string pair. | 688 // Update the cache with a new number-string pair. |
686 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 689 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
687 }; | 690 }; |
688 | 691 |
689 } } // namespace v8::internal | 692 } } // namespace v8::internal |
690 | 693 |
691 #endif // V8_FACTORY_H_ | 694 #endif // V8_FACTORY_H_ |
OLD | NEW |