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