| 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/globals.h" | 9 #include "src/globals.h" |
| 10 #include "src/types.h" | 10 #include "src/types.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 Handle<JSFunction> GetCallTarget(FeedbackVectorICSlot slot); | 71 Handle<JSFunction> GetCallTarget(FeedbackVectorICSlot slot); |
| 72 Handle<AllocationSite> GetCallAllocationSite(FeedbackVectorICSlot slot); | 72 Handle<AllocationSite> GetCallAllocationSite(FeedbackVectorICSlot slot); |
| 73 Handle<JSFunction> GetCallNewTarget(FeedbackVectorSlot slot); | 73 Handle<JSFunction> GetCallNewTarget(FeedbackVectorSlot slot); |
| 74 Handle<AllocationSite> GetCallNewAllocationSite(FeedbackVectorSlot slot); | 74 Handle<AllocationSite> GetCallNewAllocationSite(FeedbackVectorSlot slot); |
| 75 | 75 |
| 76 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); | 76 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); |
| 77 | 77 |
| 78 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 78 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
| 79 // of various cycles in our headers. Death to tons of implementations in | 79 // of various cycles in our headers. Death to tons of implementations in |
| 80 // headers!! :-P | 80 // headers!! :-P |
| 81 byte ToBooleanTypes(TypeFeedbackId id); | 81 uint16_t ToBooleanTypes(TypeFeedbackId id); |
| 82 | 82 |
| 83 // Get type information for arithmetic operations and compares. | 83 // Get type information for arithmetic operations and compares. |
| 84 void BinaryType(TypeFeedbackId id, | 84 void BinaryType(TypeFeedbackId id, |
| 85 Type** left, | 85 Type** left, |
| 86 Type** right, | 86 Type** right, |
| 87 Type** result, | 87 Type** result, |
| 88 Maybe<int>* fixed_right_arg, | 88 Maybe<int>* fixed_right_arg, |
| 89 Handle<AllocationSite>* allocation_site, | 89 Handle<AllocationSite>* allocation_site, |
| 90 Token::Value operation); | 90 Token::Value operation); |
| 91 | 91 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 Zone* zone_; | 135 Zone* zone_; |
| 136 Handle<UnseededNumberDictionary> dictionary_; | 136 Handle<UnseededNumberDictionary> dictionary_; |
| 137 Handle<TypeFeedbackVector> feedback_vector_; | 137 Handle<TypeFeedbackVector> feedback_vector_; |
| 138 | 138 |
| 139 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 139 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 140 }; | 140 }; |
| 141 | 141 |
| 142 } } // namespace v8::internal | 142 } } // namespace v8::internal |
| 143 | 143 |
| 144 #endif // V8_TYPE_INFO_H_ | 144 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |