| 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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 // Allocates a new SharedFunctionInfo object. | 601 // Allocates a new SharedFunctionInfo object. |
| 602 Handle<SharedFunctionInfo> NewSharedFunctionInfo( | 602 Handle<SharedFunctionInfo> NewSharedFunctionInfo( |
| 603 Handle<String> name, | 603 Handle<String> name, |
| 604 int number_of_literals, | 604 int number_of_literals, |
| 605 bool is_generator, | 605 bool is_generator, |
| 606 Handle<Code> code, | 606 Handle<Code> code, |
| 607 Handle<ScopeInfo> scope_info); | 607 Handle<ScopeInfo> scope_info, |
| 608 Handle<FixedArray> feedback_vector); |
| 608 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 609 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
| 609 | 610 |
| 610 // Allocates a new JSMessageObject object. | 611 // Allocates a new JSMessageObject object. |
| 611 Handle<JSMessageObject> NewJSMessageObject( | 612 Handle<JSMessageObject> NewJSMessageObject( |
| 612 Handle<String> type, | 613 Handle<String> type, |
| 613 Handle<JSArray> arguments, | 614 Handle<JSArray> arguments, |
| 614 int start_position, | 615 int start_position, |
| 615 int end_position, | 616 int end_position, |
| 616 Handle<Object> script, | 617 Handle<Object> script, |
| 617 Handle<Object> stack_frames); | 618 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. | 689 // the string representation of the number. Otherwise return undefined. |
| 689 Handle<Object> GetNumberStringCache(Handle<Object> number); | 690 Handle<Object> GetNumberStringCache(Handle<Object> number); |
| 690 | 691 |
| 691 // Update the cache with a new number-string pair. | 692 // Update the cache with a new number-string pair. |
| 692 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 693 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
| 693 }; | 694 }; |
| 694 | 695 |
| 695 } } // namespace v8::internal | 696 } } // namespace v8::internal |
| 696 | 697 |
| 697 #endif // V8_FACTORY_H_ | 698 #endif // V8_FACTORY_H_ |
| OLD | NEW |