OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 26 matching lines...) Expand all Loading... |
37 namespace internal { | 37 namespace internal { |
38 | 38 |
39 // Forward declarations. | 39 // Forward declarations. |
40 class ICStub; | 40 class ICStub; |
41 class SmallMapList; | 41 class SmallMapList; |
42 | 42 |
43 | 43 |
44 class TypeFeedbackOracle: public ZoneObject { | 44 class TypeFeedbackOracle: public ZoneObject { |
45 public: | 45 public: |
46 TypeFeedbackOracle(Handle<Code> code, | 46 TypeFeedbackOracle(Handle<Code> code, |
47 Handle<FixedArray> feedback_vector, | |
48 Handle<Context> native_context, | 47 Handle<Context> native_context, |
49 Zone* zone); | 48 Zone* zone); |
50 | 49 |
51 bool LoadIsUninitialized(TypeFeedbackId id); | 50 bool LoadIsUninitialized(TypeFeedbackId id); |
52 bool StoreIsUninitialized(TypeFeedbackId id); | 51 bool StoreIsUninitialized(TypeFeedbackId id); |
53 bool StoreIsKeyedPolymorphic(TypeFeedbackId id); | 52 bool StoreIsKeyedPolymorphic(TypeFeedbackId id); |
54 bool CallIsMonomorphic(int slot); | 53 bool CallIsMonomorphic(int slot); |
55 bool CallIsMonomorphic(TypeFeedbackId aid); | 54 bool CallIsMonomorphic(TypeFeedbackId aid); |
56 bool KeyedArrayCallIsHoley(TypeFeedbackId id); | 55 bool KeyedArrayCallIsHoley(TypeFeedbackId id); |
57 bool CallNewIsMonomorphic(int slot); | 56 bool CallNewIsMonomorphic(int slot); |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 Zone* zone_; | 146 Zone* zone_; |
148 Handle<UnseededNumberDictionary> dictionary_; | 147 Handle<UnseededNumberDictionary> dictionary_; |
149 Handle<FixedArray> feedback_vector_; | 148 Handle<FixedArray> feedback_vector_; |
150 | 149 |
151 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); | 150 DISALLOW_COPY_AND_ASSIGN(TypeFeedbackOracle); |
152 }; | 151 }; |
153 | 152 |
154 } } // namespace v8::internal | 153 } } // namespace v8::internal |
155 | 154 |
156 #endif // V8_TYPE_INFO_H_ | 155 #endif // V8_TYPE_INFO_H_ |
OLD | NEW |