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

Side by Side Diff: src/factory.h

Issue 2882973002: [coverage] Block coverage with support for IfStatements (Closed)
Patch Set: Address comments Created 3 years, 6 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/debug-interface.h ('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"
11 #include "src/messages.h" 11 #include "src/messages.h"
12 #include "src/objects/descriptor-array.h" 12 #include "src/objects/descriptor-array.h"
13 #include "src/objects/dictionary.h" 13 #include "src/objects/dictionary.h"
14 #include "src/objects/scope-info.h" 14 #include "src/objects/scope-info.h"
15 #include "src/string-hasher.h" 15 #include "src/string-hasher.h"
16 16
17 namespace v8 { 17 namespace v8 {
18 namespace internal { 18 namespace internal {
19 19
20 class BreakPointInfo; 20 class BreakPointInfo;
21 class BoilerplateDescription; 21 class BoilerplateDescription;
22 class ConstantElementsPair; 22 class ConstantElementsPair;
23 class CoverageInfo;
23 class DebugInfo; 24 class DebugInfo;
25 struct SourceRange;
24 26
25 enum FunctionMode { 27 enum FunctionMode {
26 // With prototype. 28 // With prototype.
27 FUNCTION_WITH_WRITEABLE_PROTOTYPE, 29 FUNCTION_WITH_WRITEABLE_PROTOTYPE,
28 FUNCTION_WITH_READONLY_PROTOTYPE, 30 FUNCTION_WITH_READONLY_PROTOTYPE,
29 // Without prototype. 31 // Without prototype.
30 FUNCTION_WITHOUT_PROTOTYPE 32 FUNCTION_WITHOUT_PROTOTYPE
31 }; 33 };
32 34
33 // Interface for handle based allocation. 35 // Interface for handle based allocation.
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 // Allocates a new JSMessageObject object. 773 // Allocates a new JSMessageObject object.
772 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message, 774 Handle<JSMessageObject> NewJSMessageObject(MessageTemplate::Template message,
773 Handle<Object> argument, 775 Handle<Object> argument,
774 int start_position, 776 int start_position,
775 int end_position, 777 int end_position,
776 Handle<Object> script, 778 Handle<Object> script,
777 Handle<Object> stack_frames); 779 Handle<Object> stack_frames);
778 780
779 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 781 Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
780 782
783 Handle<CoverageInfo> NewCoverageInfo(const ZoneVector<SourceRange>& slots);
784
781 // Return a map for given number of properties using the map cache in the 785 // Return a map for given number of properties using the map cache in the
782 // native context. 786 // native context.
783 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> native_context, 787 Handle<Map> ObjectLiteralMapFromCache(Handle<Context> native_context,
784 int number_of_properties); 788 int number_of_properties);
785 789
786 Handle<RegExpMatchInfo> NewRegExpMatchInfo(); 790 Handle<RegExpMatchInfo> NewRegExpMatchInfo();
787 791
788 // Creates a new FixedArray that holds the data associated with the 792 // Creates a new FixedArray that holds the data associated with the
789 // atom regexp and stores it in the regexp. 793 // atom regexp and stores it in the regexp.
790 void SetRegExpAtomData(Handle<JSRegExp> regexp, 794 void SetRegExpAtomData(Handle<JSRegExp> regexp,
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
849 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 853 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
850 FunctionMode function_mode); 854 FunctionMode function_mode);
851 855
852 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 856 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
853 }; 857 };
854 858
855 } // namespace internal 859 } // namespace internal
856 } // namespace v8 860 } // namespace v8
857 861
858 #endif // V8_FACTORY_H_ 862 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/debug/debug-interface.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698