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 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
577 | 577 |
578 Handle<String> hidden_string() { | 578 Handle<String> hidden_string() { |
579 return Handle<String>(&isolate()->heap()->hidden_string_); | 579 return Handle<String>(&isolate()->heap()->hidden_string_); |
580 } | 580 } |
581 | 581 |
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 bool is_arrow, |
587 Handle<Code> code, | 588 Handle<Code> code, |
588 Handle<ScopeInfo> scope_info); | 589 Handle<ScopeInfo> scope_info); |
589 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); | 590 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); |
590 | 591 |
591 // Allocates a new JSMessageObject object. | 592 // Allocates a new JSMessageObject object. |
592 Handle<JSMessageObject> NewJSMessageObject( | 593 Handle<JSMessageObject> NewJSMessageObject( |
593 Handle<String> type, | 594 Handle<String> type, |
594 Handle<JSArray> arguments, | 595 Handle<JSArray> arguments, |
595 int start_position, | 596 int start_position, |
596 int end_position, | 597 int end_position, |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
681 // the string representation of the number. Otherwise return undefined. | 682 // the string representation of the number. Otherwise return undefined. |
682 Handle<Object> GetNumberStringCache(Handle<Object> number); | 683 Handle<Object> GetNumberStringCache(Handle<Object> number); |
683 | 684 |
684 // Update the cache with a new number-string pair. | 685 // Update the cache with a new number-string pair. |
685 void SetNumberStringCache(Handle<Object> number, Handle<String> string); | 686 void SetNumberStringCache(Handle<Object> number, Handle<String> string); |
686 }; | 687 }; |
687 | 688 |
688 } } // namespace v8::internal | 689 } } // namespace v8::internal |
689 | 690 |
690 #endif // V8_FACTORY_H_ | 691 #endif // V8_FACTORY_H_ |
OLD | NEW |