| 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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 // TODO(2029): When an optimized function is patched, it would | 372 // TODO(2029): When an optimized function is patched, it would |
| 373 // be nice to propagate the corresponding type information to its | 373 // be nice to propagate the corresponding type information to its |
| 374 // unoptimized version for the benefit of later inlining. | 374 // unoptimized version for the benefit of later inlining. |
| 375 } | 375 } |
| 376 | 376 |
| 377 | 377 |
| 378 void IC::Clear(Address address) { | 378 void IC::Clear(Address address) { |
| 379 Code* target = GetTargetAtAddress(address); | 379 Code* target = GetTargetAtAddress(address); |
| 380 | 380 |
| 381 // Don't clear debug break inline cache as it will remove the break point. | 381 // Don't clear debug break inline cache as it will remove the break point. |
| 382 if (target->is_debug_break()) return; | 382 if (target->is_debug_stub()) return; |
| 383 | 383 |
| 384 switch (target->kind()) { | 384 switch (target->kind()) { |
| 385 case Code::LOAD_IC: return LoadIC::Clear(address, target); | 385 case Code::LOAD_IC: return LoadIC::Clear(address, target); |
| 386 case Code::KEYED_LOAD_IC: return KeyedLoadIC::Clear(address, target); | 386 case Code::KEYED_LOAD_IC: return KeyedLoadIC::Clear(address, target); |
| 387 case Code::STORE_IC: return StoreIC::Clear(address, target); | 387 case Code::STORE_IC: return StoreIC::Clear(address, target); |
| 388 case Code::KEYED_STORE_IC: return KeyedStoreIC::Clear(address, target); | 388 case Code::KEYED_STORE_IC: return KeyedStoreIC::Clear(address, target); |
| 389 case Code::CALL_IC: return CallIC::Clear(address, target); | 389 case Code::CALL_IC: return CallIC::Clear(address, target); |
| 390 case Code::KEYED_CALL_IC: return KeyedCallIC::Clear(address, target); | 390 case Code::KEYED_CALL_IC: return KeyedCallIC::Clear(address, target); |
| 391 case Code::COMPARE_IC: return CompareIC::Clear(address, target); | 391 case Code::COMPARE_IC: return CompareIC::Clear(address, target); |
| 392 case Code::COMPARE_NIL_IC: return CompareNilIC::Clear(address, target); | 392 case Code::COMPARE_NIL_IC: return CompareNilIC::Clear(address, target); |
| (...skipping 2713 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3106 #undef ADDR | 3106 #undef ADDR |
| 3107 }; | 3107 }; |
| 3108 | 3108 |
| 3109 | 3109 |
| 3110 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3110 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 3111 return IC_utilities[id]; | 3111 return IC_utilities[id]; |
| 3112 } | 3112 } |
| 3113 | 3113 |
| 3114 | 3114 |
| 3115 } } // namespace v8::internal | 3115 } } // namespace v8::internal |
| OLD | NEW |