OLD | NEW |
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/ast/ast-types.h" |
10 #include "src/contexts.h" | 10 #include "src/contexts.h" |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, AstType** left, AstType** right, | 80 void BinaryType(TypeFeedbackId id, FeedbackVectorSlot slot, AstType** left, |
81 AstType** result, Maybe<int>* fixed_right_arg, | 81 AstType** right, AstType** result, |
| 82 Maybe<int>* fixed_right_arg, |
82 Handle<AllocationSite>* allocation_site, | 83 Handle<AllocationSite>* allocation_site, |
83 Token::Value operation); | 84 Token::Value operation, bool ignition_feedback); |
84 | 85 |
85 void CompareType(TypeFeedbackId id, AstType** left, AstType** right, | 86 void CompareType(TypeFeedbackId id, FeedbackVectorSlot slot, AstType** left, |
86 AstType** combined); | 87 AstType** right, AstType** combined, bool ignition_feedback); |
87 | 88 |
88 AstType* CountType(TypeFeedbackId id); | 89 AstType* CountType(TypeFeedbackId id, FeedbackVectorSlot slot, |
| 90 bool ignition_feedback); |
89 | 91 |
90 Zone* zone() const { return zone_; } | 92 Zone* zone() const { return zone_; } |
91 Isolate* isolate() const { return isolate_; } | 93 Isolate* isolate() const { return isolate_; } |
92 | 94 |
93 private: | 95 private: |
94 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, | 96 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, |
95 Handle<Name> name, SmallMapList* types); | 97 Handle<Name> name, SmallMapList* types); |
96 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, | 98 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, |
97 Handle<Name> name, SmallMapList* types); | 99 Handle<Name> name, SmallMapList* types); |
98 | 100 |
(...skipping 26 matching lines...) Expand all Loading... |
125 Handle<UnseededNumberDictionary> dictionary_; | 127 Handle<UnseededNumberDictionary> dictionary_; |
126 Handle<TypeFeedbackVector> feedback_vector_; | 128 Handle<TypeFeedbackVector> feedback_vector_; |
127 | 129 |
128 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 130 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
129 }; | 131 }; |
130 | 132 |
131 } // namespace internal | 133 } // namespace internal |
132 } // namespace v8 | 134 } // namespace v8 |
133 | 135 |
134 #endif // V8_TYPE_INFO_H_ | 136 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |