| 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); |
| 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); |
| 87 | 88 |
| 88 AstType* CountType(TypeFeedbackId id); | 89 AstType* CountType(TypeFeedbackId id, FeedbackVectorSlot slot); |
| 89 | 90 |
| 90 Zone* zone() const { return zone_; } | 91 Zone* zone() const { return zone_; } |
| 91 Isolate* isolate() const { return isolate_; } | 92 Isolate* isolate() const { return isolate_; } |
| 92 | 93 |
| 93 private: | 94 private: |
| 94 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, | 95 void CollectReceiverTypes(StubCache* stub_cache, FeedbackVectorSlot slot, |
| 95 Handle<Name> name, SmallMapList* types); | 96 Handle<Name> name, SmallMapList* types); |
| 96 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, | 97 void CollectReceiverTypes(StubCache* stub_cache, FeedbackNexus* nexus, |
| 97 Handle<Name> name, SmallMapList* types); | 98 Handle<Name> name, SmallMapList* types); |
| 98 | 99 |
| (...skipping 26 matching lines...) Expand all Loading... |
| 125 Handle<UnseededNumberDictionary> dictionary_; | 126 Handle<UnseededNumberDictionary> dictionary_; |
| 126 Handle<TypeFeedbackVector> feedback_vector_; | 127 Handle<TypeFeedbackVector> feedback_vector_; |
| 127 | 128 |
| 128 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 129 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 129 }; | 130 }; |
| 130 | 131 |
| 131 } // namespace internal | 132 } // namespace internal |
| 132 } // namespace v8 | 133 } // namespace v8 |
| 133 | 134 |
| 134 #endif // V8_TYPE_INFO_H_ | 135 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |