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 17 matching lines...) Expand all Loading... |
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 // IC_UTIL_LIST defines all utility functions called from generated | 36 // IC_UTIL_LIST defines all utility functions called from generated |
37 // 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. |
38 #define IC_UTIL_LIST(ICU) \ | 38 #define IC_UTIL_LIST(ICU) \ |
39 ICU(LoadIC_Miss) \ | 39 ICU(LoadIC_Miss) \ |
40 ICU(KeyedLoadIC_Miss) \ | 40 ICU(KeyedLoadIC_Miss) \ |
41 ICU(CallIC_Miss) \ | 41 ICU(CallIC_Miss) \ |
42 ICU(StoreIC_Miss) \ | 42 ICU(StoreIC_Miss) \ |
43 ICU(SharedStoreIC_ExtendStorage) \ | 43 ICU(SharedStoreIC_ExtendStorage) \ |
44 ICU(KeyedStoreIC_Miss) \ | 44 ICU(KeyedStoreIC_Miss) \ |
45 /* Utilities for IC stubs. */ \ | 45 /* Utilities for IC stubs. */ \ |
46 ICU(LoadCallbackProperty) \ | 46 ICU(LoadCallbackProperty) \ |
47 ICU(StoreCallbackProperty) \ | 47 ICU(StoreCallbackProperty) \ |
48 ICU(LoadInterceptorProperty) \ | 48 ICU(LoadPropertyWithInterceptorOnly) \ |
| 49 ICU(LoadPropertyWithInterceptorForLoad) \ |
| 50 ICU(LoadPropertyWithInterceptorForCall) \ |
49 ICU(StoreInterceptorProperty) | 51 ICU(StoreInterceptorProperty) |
50 | 52 |
51 // | 53 // |
52 // IC is the base class for LoadIC, StoreIC, CallIC, KeyedLoadIC, | 54 // IC is the base class for LoadIC, StoreIC, CallIC, KeyedLoadIC, |
53 // and KeyedStoreIC. | 55 // and KeyedStoreIC. |
54 // | 56 // |
55 class IC { | 57 class IC { |
56 public: | 58 public: |
57 | 59 |
58 // The ids for utility called from the generated code. | 60 // The ids for utility called from the generated code. |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
389 // version of keyed store. | 391 // version of keyed store. |
390 static bool PatchInlinedStore(Address address, Object* map); | 392 static bool PatchInlinedStore(Address address, Object* map); |
391 | 393 |
392 friend class IC; | 394 friend class IC; |
393 }; | 395 }; |
394 | 396 |
395 | 397 |
396 } } // namespace v8::internal | 398 } } // namespace v8::internal |
397 | 399 |
398 #endif // V8_IC_H_ | 400 #endif // V8_IC_H_ |
OLD | NEW |