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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 ICU(CallIC_Miss) \ | 46 ICU(CallIC_Miss) \ |
47 ICU(StoreIC_Miss) \ | 47 ICU(StoreIC_Miss) \ |
48 ICU(SharedStoreIC_ExtendStorage) \ | 48 ICU(SharedStoreIC_ExtendStorage) \ |
49 ICU(KeyedStoreIC_Miss) \ | 49 ICU(KeyedStoreIC_Miss) \ |
50 /* Utilities for IC stubs. */ \ | 50 /* Utilities for IC stubs. */ \ |
51 ICU(LoadCallbackProperty) \ | 51 ICU(LoadCallbackProperty) \ |
52 ICU(StoreCallbackProperty) \ | 52 ICU(StoreCallbackProperty) \ |
53 ICU(LoadPropertyWithInterceptorOnly) \ | 53 ICU(LoadPropertyWithInterceptorOnly) \ |
54 ICU(LoadPropertyWithInterceptorForLoad) \ | 54 ICU(LoadPropertyWithInterceptorForLoad) \ |
55 ICU(LoadPropertyWithInterceptorForCall) \ | 55 ICU(LoadPropertyWithInterceptorForCall) \ |
56 ICU(StoreInterceptorProperty) | 56 ICU(StoreInterceptorProperty) \ |
| 57 ICU(BinaryOp_Patch) |
57 | 58 |
58 // | 59 // |
59 // IC is the base class for LoadIC, StoreIC, CallIC, KeyedLoadIC, | 60 // IC is the base class for LoadIC, StoreIC, CallIC, KeyedLoadIC, |
60 // and KeyedStoreIC. | 61 // and KeyedStoreIC. |
61 // | 62 // |
62 class IC { | 63 class IC { |
63 public: | 64 public: |
64 | 65 |
65 // The ids for utility called from the generated code. | 66 // The ids for utility called from the generated code. |
66 enum UtilityId { | 67 enum UtilityId { |
(...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
426 // The address is the patch point for the IC call | 427 // The address is the patch point for the IC call |
427 // (Assembler::kCallTargetAddressOffset before the end of | 428 // (Assembler::kCallTargetAddressOffset before the end of |
428 // the call/return address). | 429 // the call/return address). |
429 // The map is the new map that the inlined code should check against. | 430 // The map is the new map that the inlined code should check against. |
430 static bool PatchInlinedStore(Address address, Object* map); | 431 static bool PatchInlinedStore(Address address, Object* map); |
431 | 432 |
432 friend class IC; | 433 friend class IC; |
433 }; | 434 }; |
434 | 435 |
435 | 436 |
| 437 class BinaryOpIC: public IC { |
| 438 public: |
| 439 BinaryOpIC() : IC(NO_EXTRA_FRAME) { } |
| 440 |
| 441 void patch(Code* code); |
| 442 |
| 443 static void Clear(Address address, Code* target); |
| 444 }; |
| 445 |
436 } } // namespace v8::internal | 446 } } // namespace v8::internal |
437 | 447 |
438 #endif // V8_IC_H_ | 448 #endif // V8_IC_H_ |
OLD | NEW |