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 "allocation.h" | 8 #include "allocation.h" |
9 #include "globals.h" | 9 #include "globals.h" |
10 #include "types.h" | 10 #include "types.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 SmallMapList* receiver_types); | 58 SmallMapList* receiver_types); |
59 | 59 |
60 void CollectReceiverTypes(TypeFeedbackId id, | 60 void CollectReceiverTypes(TypeFeedbackId id, |
61 SmallMapList* types); | 61 SmallMapList* types); |
62 | 62 |
63 static bool CanRetainOtherContext(Map* map, Context* native_context); | 63 static bool CanRetainOtherContext(Map* map, Context* native_context); |
64 static bool CanRetainOtherContext(JSFunction* function, | 64 static bool CanRetainOtherContext(JSFunction* function, |
65 Context* native_context); | 65 Context* native_context); |
66 | 66 |
67 Handle<JSFunction> GetCallTarget(int slot); | 67 Handle<JSFunction> GetCallTarget(int slot); |
| 68 Handle<AllocationSite> GetCallAllocationSite(int slot); |
68 Handle<JSFunction> GetCallNewTarget(int slot); | 69 Handle<JSFunction> GetCallNewTarget(int slot); |
69 Handle<AllocationSite> GetCallNewAllocationSite(int slot); | 70 Handle<AllocationSite> GetCallNewAllocationSite(int slot); |
70 | 71 |
71 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); | 72 bool LoadIsBuiltin(TypeFeedbackId id, Builtins::Name builtin_id); |
72 bool LoadIsStub(TypeFeedbackId id, ICStub* stub); | 73 bool LoadIsStub(TypeFeedbackId id, ICStub* stub); |
73 | 74 |
74 // TODO(1571) We can't use ToBooleanStub::Types as the return value because | 75 // TODO(1571) We can't use ToBooleanStub::Types as the return value because |
75 // of various cycles in our headers. Death to tons of implementations in | 76 // of various cycles in our headers. Death to tons of implementations in |
76 // headers!! :-P | 77 // headers!! :-P |
77 byte ToBooleanTypes(TypeFeedbackId id); | 78 byte ToBooleanTypes(TypeFeedbackId id); |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 Zone* zone_; | 125 Zone* zone_; |
125 Handle<UnseededNumberDictionary> dictionary_; | 126 Handle<UnseededNumberDictionary> dictionary_; |
126 Handle<FixedArray> feedback_vector_; | 127 Handle<FixedArray> feedback_vector_; |
127 | 128 |
128 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 129 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
129 }; | 130 }; |
130 | 131 |
131 } } // namespace v8::internal | 132 } } // namespace v8::internal |
132 | 133 |
133 #endif // V8_TYPE_INFO_H_ | 134 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |