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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
992 receiver_maps->Add(new_receiver_map); | 992 receiver_maps->Add(new_receiver_map); |
993 return true; | 993 return true; |
994 } | 994 } |
995 | 995 |
996 | 996 |
997 bool IC::UpdatePolymorphicIC(State state, | 997 bool IC::UpdatePolymorphicIC(State state, |
998 Handle<HeapObject> receiver, | 998 Handle<HeapObject> receiver, |
999 Handle<String> name, | 999 Handle<String> name, |
1000 Handle<Code> code, | 1000 Handle<Code> code, |
1001 StrictModeFlag strict_mode) { | 1001 StrictModeFlag strict_mode) { |
1002 if (code->type() == Code::NORMAL) return false; | 1002 if (code->kind() != Code::HANDLER) return false; |
1003 if (target()->ic_state() == MONOMORPHIC && | 1003 if (target()->ic_state() == MONOMORPHIC && |
1004 target()->type() == Code::NORMAL) { | 1004 target()->type() == Code::NORMAL) { |
1005 return false; | 1005 return false; |
1006 } | 1006 } |
1007 | 1007 |
1008 MapHandleList receiver_maps; | 1008 MapHandleList receiver_maps; |
1009 CodeHandleList handlers; | 1009 CodeHandleList handlers; |
1010 | 1010 |
1011 int number_of_valid_maps; | 1011 int number_of_valid_maps; |
1012 int handler_to_overwrite = -1; | 1012 int handler_to_overwrite = -1; |
(...skipping 2149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3162 #undef ADDR | 3162 #undef ADDR |
3163 }; | 3163 }; |
3164 | 3164 |
3165 | 3165 |
3166 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 3166 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
3167 return IC_utilities[id]; | 3167 return IC_utilities[id]; |
3168 } | 3168 } |
3169 | 3169 |
3170 | 3170 |
3171 } } // namespace v8::internal | 3171 } } // namespace v8::internal |
OLD | NEW |