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

Side by Side Diff: src/factory.h

Issue 1374723002: Introduce LiteralsArray to hide it's implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: More comments. Created 5 years, 2 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
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 10
(...skipping 623 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 Handle<String> name, int number_of_literals, FunctionKind kind, 634 Handle<String> name, int number_of_literals, FunctionKind kind,
635 Handle<Code> code, Handle<ScopeInfo> scope_info, 635 Handle<Code> code, Handle<ScopeInfo> scope_info,
636 Handle<TypeFeedbackVector> feedback_vector); 636 Handle<TypeFeedbackVector> feedback_vector);
637 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name, 637 Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name,
638 MaybeHandle<Code> code); 638 MaybeHandle<Code> code);
639 639
640 // Allocate a new type feedback vector 640 // Allocate a new type feedback vector
641 template <typename Spec> 641 template <typename Spec>
642 Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec); 642 Handle<TypeFeedbackVector> NewTypeFeedbackVector(const Spec* spec);
643 643
644 Handle<LiteralsArray> NewLiteralsArray(Handle<TypeFeedbackVector> vector,
645 int number_of_literals,
646 PretenureFlag pretenure);
647
644 // Allocates a new JSMessageObject object. 648 // Allocates a new JSMessageObject object.
645 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, 649 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message,
646 Handle<Object> argument, 650 Handle<Object> argument,
647 int start_position, 651 int start_position,
648 int end_position, 652 int end_position,
649 Handle<Object> script, 653 Handle<Object> script,
650 Handle<Object> stack_frames); 654 Handle<Object> stack_frames);
651 655
652 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 656 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
653 657
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
727 // Reinitialize a JSProxy into an (empty) JS object of respective type and 731 // Reinitialize a JSProxy into an (empty) JS object of respective type and
728 // size, but keeping the original prototype. The receiver must have at least 732 // size, but keeping the original prototype. The receiver must have at least
729 // the size of the new object. The object is reinitialized and behaves as an 733 // the size of the new object. The object is reinitialized and behaves as an
730 // object that has been freshly allocated. 734 // object that has been freshly allocated.
731 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size); 735 void ReinitializeJSProxy(Handle<JSProxy> proxy, InstanceType type, int size);
732 }; 736 };
733 737
734 } } // namespace v8::internal 738 } } // namespace v8::internal
735 739
736 #endif // V8_FACTORY_H_ 740 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug/liveedit.cc ('k') | src/factory.cc » ('j') | src/factory.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698