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

Side by Side Diff: src/factory.h

Issue 1813803002: [compiler] Allocate SharedFunctionInfo before compile. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments. Created 4 years, 9 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/compiler/bytecode-graph-builder.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/isolate.h" 8 #include "src/isolate.h"
9 #include "src/messages.h" 9 #include "src/messages.h"
10 #include "src/type-feedback-vector.h" 10 #include "src/type-feedback-vector.h"
(...skipping 609 matching lines...) Expand 10 before | Expand all | Expand 10 after
620 return Handle<Symbol>(bit_cast<Symbol**>( \ 620 return Handle<Symbol>(bit_cast<Symbol**>( \
621 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \ 621 &isolate()->heap()->roots_[Heap::k##name##RootIndex])); \
622 } 622 }
623 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR) 623 PUBLIC_SYMBOL_LIST(SYMBOL_ACCESSOR)
624 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR) 624 WELL_KNOWN_SYMBOL_LIST(SYMBOL_ACCESSOR)
625 #undef SYMBOL_ACCESSOR 625 #undef SYMBOL_ACCESSOR
626 626
627 // Allocates a new SharedFunctionInfo object. 627 // Allocates a new SharedFunctionInfo object.
628 Handle<SharedFunctionInfo> NewSharedFunctionInfo( 628 Handle<SharedFunctionInfo> NewSharedFunctionInfo(
629 Handle<String> name, int number_of_literals, FunctionKind kind, 629 Handle<String> name, int number_of_literals, FunctionKind kind,
630 Handle<Code> code, Handle<ScopeInfo> scope_info, 630 Handle<Code> code, Handle<ScopeInfo> scope_info);
631 Handle<TypeFeedbackVector> feedback_vector);
632 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, 631 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name,
633 MaybeHandle<Code> code, 632 MaybeHandle<Code> code,
634 bool is_constructor); 633 bool is_constructor);
635 634
636 // Allocates a new JSMessageObject object. 635 // Allocates a new JSMessageObject object.
637 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, 636 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message,
638 Handle<Object> argument, 637 Handle<Object> argument,
639 int start_position, 638 int start_position,
640 int end_position, 639 int end_position,
641 Handle<Object> script, 640 Handle<Object> script,
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 704
706 // Create a JSArray with no elements and no length. 705 // Create a JSArray with no elements and no length.
707 Handle<JSArray> NewJSArray(ElementsKind elements_kind, 706 Handle<JSArray> NewJSArray(ElementsKind elements_kind,
708 PretenureFlag pretenure = NOT_TENURED); 707 PretenureFlag pretenure = NOT_TENURED);
709 }; 708 };
710 709
711 } // namespace internal 710 } // namespace internal
712 } // namespace v8 711 } // namespace v8
713 712
714 #endif // V8_FACTORY_H_ 713 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/compiler/bytecode-graph-builder.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698