OLD | NEW |
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2009 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 15 matching lines...) Expand all Loading... |
26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | 27 |
28 #ifndef V8_IC_H_ | 28 #ifndef V8_IC_H_ |
29 #define V8_IC_H_ | 29 #define V8_IC_H_ |
30 | 30 |
31 #include "assembler.h" | 31 #include "assembler.h" |
32 | 32 |
33 namespace v8 { | 33 namespace v8 { |
34 namespace internal { | 34 namespace internal { |
35 | 35 |
36 // Flag indicating whether an IC stub needs to check that a backing | |
37 // store is in dictionary case. | |
38 enum DictionaryCheck { CHECK_DICTIONARY, DICTIONARY_CHECK_DONE }; | |
39 | |
40 | 36 |
41 // IC_UTIL_LIST defines all utility functions called from generated | 37 // IC_UTIL_LIST defines all utility functions called from generated |
42 // inline caching code. The argument for the macro, ICU, is the function name. | 38 // inline caching code. The argument for the macro, ICU, is the function name. |
43 #define IC_UTIL_LIST(ICU) \ | 39 #define IC_UTIL_LIST(ICU) \ |
44 ICU(LoadIC_Miss) \ | 40 ICU(LoadIC_Miss) \ |
45 ICU(KeyedLoadIC_Miss) \ | 41 ICU(KeyedLoadIC_Miss) \ |
46 ICU(CallIC_Miss) \ | 42 ICU(CallIC_Miss) \ |
47 ICU(KeyedCallIC_Miss) \ | 43 ICU(KeyedCallIC_Miss) \ |
48 ICU(StoreIC_Miss) \ | 44 ICU(StoreIC_Miss) \ |
49 ICU(StoreIC_ArrayLength) \ | 45 ICU(StoreIC_ArrayLength) \ |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 static const char* GetName(TypeInfo type_info); | 488 static const char* GetName(TypeInfo type_info); |
493 | 489 |
494 static State ToState(TypeInfo type_info); | 490 static State ToState(TypeInfo type_info); |
495 | 491 |
496 static TypeInfo GetTypeInfo(Object* left, Object* right); | 492 static TypeInfo GetTypeInfo(Object* left, Object* right); |
497 }; | 493 }; |
498 | 494 |
499 } } // namespace v8::internal | 495 } } // namespace v8::internal |
500 | 496 |
501 #endif // V8_IC_H_ | 497 #endif // V8_IC_H_ |
OLD | NEW |