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 | |
41 // IC_UTIL_LIST defines all utility functions called from generated | 36 // IC_UTIL_LIST defines all utility functions called from generated |
42 // inline caching code. The argument for the macro, ICU, is the function name. | 37 // inline caching code. The argument for the macro, ICU, is the function name. |
43 #define IC_UTIL_LIST(ICU) \ | 38 #define IC_UTIL_LIST(ICU) \ |
44 ICU(LoadIC_Miss) \ | 39 ICU(LoadIC_Miss) \ |
45 ICU(KeyedLoadIC_Miss) \ | 40 ICU(KeyedLoadIC_Miss) \ |
46 ICU(CallIC_Miss) \ | 41 ICU(CallIC_Miss) \ |
47 ICU(StoreIC_Miss) \ | 42 ICU(StoreIC_Miss) \ |
48 ICU(SharedStoreIC_ExtendStorage) \ | 43 ICU(SharedStoreIC_ExtendStorage) \ |
49 ICU(KeyedStoreIC_Miss) \ | 44 ICU(KeyedStoreIC_Miss) \ |
50 /* Utilities for IC stubs. */ \ | 45 /* Utilities for IC stubs. */ \ |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 // The map is the new map that the inlined code should check against. | 411 // The map is the new map that the inlined code should check against. |
417 static bool PatchInlinedStore(Address address, Object* map); | 412 static bool PatchInlinedStore(Address address, Object* map); |
418 | 413 |
419 friend class IC; | 414 friend class IC; |
420 }; | 415 }; |
421 | 416 |
422 | 417 |
423 } } // namespace v8::internal | 418 } } // namespace v8::internal |
424 | 419 |
425 #endif // V8_IC_H_ | 420 #endif // V8_IC_H_ |
OLD | NEW |