| 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/contexts.h" | 9 #include "src/contexts.h" |
| 10 #include "src/globals.h" | 10 #include "src/globals.h" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 return !constructor->IsJSFunction() || | 64 return !constructor->IsJSFunction() || |
| 65 JSFunction::cast(constructor)->context()->native_context() == | 65 JSFunction::cast(constructor)->context()->native_context() == |
| 66 native_context; | 66 native_context; |
| 67 } | 67 } |
| 68 | 68 |
| 69 Handle<JSFunction> GetCallTarget(FeedbackVectorSlot slot); | 69 Handle<JSFunction> GetCallTarget(FeedbackVectorSlot slot); |
| 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 ToBooleanStub::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, |
| 81 Type** left, | 81 Type** left, |
| 82 Type** right, | 82 Type** right, |
| 83 Type** result, | 83 Type** result, |
| 84 Maybe<int>* fixed_right_arg, | 84 Maybe<int>* fixed_right_arg, |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 Handle<UnseededNumberDictionary> dictionary_; | 131 Handle<UnseededNumberDictionary> dictionary_; |
| 132 Handle<TypeFeedbackVector> feedback_vector_; | 132 Handle<TypeFeedbackVector> feedback_vector_; |
| 133 | 133 |
| 134 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 134 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
| 135 }; | 135 }; |
| 136 | 136 |
| 137 } // namespace internal | 137 } // namespace internal |
| 138 } // namespace v8 | 138 } // namespace v8 |
| 139 | 139 |
| 140 #endif // V8_TYPE_INFO_H_ | 140 #endif // V8_TYPE_INFO_H_ |
| OLD | NEW |