| 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 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 593 #undef STRING_ACCESSOR | 593 #undef STRING_ACCESSOR |
| 594 | 594 |
| 595 inline void set_string_table(Handle<StringTable> table) { | 595 inline void set_string_table(Handle<StringTable> table) { |
| 596 isolate()->heap()->set_string_table(*table); | 596 isolate()->heap()->set_string_table(*table); |
| 597 } | 597 } |
| 598 | 598 |
| 599 Handle<String> hidden_string() { | 599 Handle<String> hidden_string() { |
| 600 return Handle<String>(&isolate()->heap()->hidden_string_); | 600 return Handle<String>(&isolate()->heap()->hidden_string_); |
| 601 } | 601 } |
| 602 | 602 |
| 603 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); | |
| 604 | |
| 605 // Allocates a new SharedFunctionInfo object. | 603 // Allocates a new SharedFunctionInfo object. |
| 606 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 604 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 607 Handle<String> name, | 605 Handle<String> name, |
| 608 int number_of_literals, | 606 int number_of_literals, |
| 609 bool is_generator, | 607 bool is_generator, |
| 610 Handle<Code> code, | 608 Handle<Code> code, |
| 611 Handle<ScopeInfo> scope_info, | 609 Handle<ScopeInfo> scope_info, |
| 612 Handle<FixedArray> feedback_vector); | 610 Handle<FixedArray> feedback_vector); |
| 613 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 611 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
| 614 | 612 |
| 613 // Allocate a new type feedback vector |
| 614 Handle<FixedArray> NewTypeFeedbackVector(int slot_count); |
| 615 |
| 615 // Allocates a new JSMessageObject object. | 616 // Allocates a new JSMessageObject object. |
| 616 Handle<JSMessageObject> NewJSMessageObject( | 617 Handle<JSMessageObject> NewJSMessageObject( |
| 617 Handle<String> type, | 618 Handle<String> type, |
| 618 Handle<JSArray> arguments, | 619 Handle<JSArray> arguments, |
| 619 int start_position, | 620 int start_position, |
| 620 int end_position, | 621 int end_position, |
| 621 Handle<Object> script, | 622 Handle<Object> script, |
| 622 Handle<Object> stack_frames); | 623 Handle<Object> stack_frames); |
| 623 | 624 |
| 624 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); | 625 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 696 // the string representation of the number. Otherwise return undefined. | 697 // the string representation of the number. Otherwise return undefined. |
| 697 Handle<Object> GetNumberStringCache(Handle<Object> number); | 698 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 698 | 699 |
| 699 // Update the cache with a new number-string pair. | 700 // Update the cache with a new number-string pair. |
| 700 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 701 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 701 }; | 702 }; |
| 702 | 703 |
| 703 } } // namespace v8::internal | 704 } } // namespace v8::internal |
| 704 | 705 |
| 705 #endif // V8_FACTORY_H_ | 706 #endif // V8_FACTORY_H_ |
| OLD | NEW |