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

Side by Side Diff: src/type-info.h

Issue 2302283002: Forking the type system between Crankshaft & Turbofan. (Closed)
Patch Set: Nits. Created 4 years, 3 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/parsing/parameter-initializer-rewriter.h ('k') | src/type-info.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_TYPE_INFO_H_ 5 #ifndef V8_TYPE_INFO_H_
6 #define V8_TYPE_INFO_H_ 6 #define V8_TYPE_INFO_H_
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/ast/ast-types.h"
9 #include "src/contexts.h" 10 #include "src/contexts.h"
10 #include "src/globals.h" 11 #include "src/globals.h"
11 #include "src/parsing/token.h" 12 #include "src/parsing/token.h"
12 #include "src/types.h"
13 #include "src/zone.h" 13 #include "src/zone.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 // Forward declarations. 18 // Forward declarations.
19 class SmallMapList; 19 class SmallMapList;
20 class FeedbackNexus; 20 class FeedbackNexus;
21 class StubCache; 21 class StubCache;
22 22
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 Handle<AllocationSite> GetCallAllocationSite(FeedbackVectorSlot slot); 70 Handle<AllocationSite> GetCallAllocationSite(FeedbackVectorSlot slot);
71 Handle<JSFunction> GetCallNewTarget(FeedbackVectorSlot slot); 71 Handle<JSFunction> GetCallNewTarget(FeedbackVectorSlot slot);
72 Handle<AllocationSite> GetCallNewAllocationSite(FeedbackVectorSlot slot); 72 Handle<AllocationSite> GetCallNewAllocationSite(FeedbackVectorSlot slot);
73 73
74 // TODO(1571) We can't use ToBooleanICStub::Types as the return value because 74 // TODO(1571) We can't use ToBooleanICStub::Types as the return value because
75 // of various cycles in our headers. Death to tons of implementations in 75 // of various cycles in our headers. Death to tons of implementations in
76 // headers!! :-P 76 // headers!! :-P
77 uint16_t ToBooleanTypes(TypeFeedbackId id); 77 uint16_t ToBooleanTypes(TypeFeedbackId id);
78 78
79 // Get type information for arithmetic operations and compares. 79 // Get type information for arithmetic operations and compares.
80 void BinaryType(TypeFeedbackId id, 80 void BinaryType(TypeFeedbackId id, AstType** left, AstType** right,
81 Type** left, 81 AstType** result, Maybe<int>* fixed_right_arg,
82 Type** right,
83 Type** result,
84 Maybe<int>* fixed_right_arg,
85 Handle<AllocationSite>* allocation_site, 82 Handle<AllocationSite>* allocation_site,
86 Token::Value operation); 83 Token::Value operation);
87 84
88 void CompareType(TypeFeedbackId id, 85 void CompareType(TypeFeedbackId id, AstType** left, AstType** right,
89 Type** left, 86 AstType** combined);
90 Type** right,
91 Type** combined);
92 87
93 Type* CountType(TypeFeedbackId id); 88 AstType* CountType(TypeFeedbackId id);
94 89
95 Zone* zone() const { return zone_; } 90 Zone* zone() const { return zone_; }
96 Isolate* isolate() const { return isolate_; } 91 Isolate* isolate() const { return isolate_; }
97 92
98 private: 93 private:
99 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, 94 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot,
100 Handle<Name> name, SmallMapList* types); 95 Handle<Name> name, SmallMapList* types);
101 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, 96 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus,
102 Handle<Name> name, SmallMapList* types); 97 Handle<Name> name, SmallMapList* types);
103 98
(...skipping 26 matching lines...) Expand all
130 Handle<UnseededNumberDictionary> dictionary_; 125 Handle<UnseededNumberDictionary> dictionary_;
131 Handle<TypeFeedbackVector> feedback_vector_; 126 Handle<TypeFeedbackVector> feedback_vector_;
132 127
133 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); 128 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle);
134 }; 129 };
135 130
136 } // namespace internal 131 } // namespace internal
137 } // namespace v8 132 } // namespace v8
138 133
139 #endif // V8_TYPE_INFO_H_ 134 #endif // V8_TYPE_INFO_H_
OLDNEW
« no previous file with comments | « src/parsing/parameter-initializer-rewriter.h ('k') | src/type-info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698