Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(365)

Side by Side Diff: src/factory.h

Issue 2657413002: No need to collect literal counts.
Patch Set: Rebase. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "src/feedback-vector.h" 8 #include "src/feedback-vector.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 inline Handle<Symbol> name() { \ 729 inline Handle<Symbol> name() { \
730 return Handle<Symbol>(bit_cast<Symbol**>( \ 730 return Handle<Symbol>(bit_cast<Symbol**>( \
731 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ 731 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \
732 } 732 }
733 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) 733 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR)
734 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) 734 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR)
735 #undef SYMBOL_ACCESSOR 735 #undef SYMBOL_ACCESSOR
736 736
737 // Allocates a new SharedFunctionInfo object. 737 // Allocates a new SharedFunctionInfo object.
738 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 738 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
739 Handle<String> name, int number_of_literals, FunctionKind kind, 739 Handle<String> name, FunctionKind kind, Handle<Code> code,
740 Handle<Code> code, Handle<ScopeInfo> scope_info); 740 Handle<ScopeInfo> scope_info);
741 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, 741 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name,
742 MaybeHandle<Code> code, 742 MaybeHandle<Code> code,
743 bool is_constructor); 743 bool is_constructor);
744 744
745 Handle<SharedFunctionInfo> NewSharedFunctionInfoForLiteral( 745 Handle<SharedFunctionInfo> NewSharedFunctionInfoForLiteral(
746 FunctionLiteral* literal, Handle<Script> script); 746 FunctionLiteral* literal, Handle<Script> script);
747 747
748 static bool IsFunctionModeWithPrototype(FunctionMode function_mode) { 748 static bool IsFunctionModeWithPrototype(FunctionMode function_mode) {
749 return (function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE || 749 return (function_mode == FUNCTION_WITH_WRITEABLE_PROTOTYPE ||
750 function_mode == FUNCTION_WITH_READONLY_PROTOTYPE); 750 function_mode == FUNCTION_WITH_READONLY_PROTOTYPE);
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 839 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
840 FunctionMode function_mode); 840 FunctionMode function_mode);
841 841
842 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 842 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
843 }; 843 };
844 844
845 } // namespace internal 845 } // namespace internal
846 } // namespace v8 846 } // namespace v8
847 847
848 #endif // V8_FACTORY_H_ 848 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698