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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 Handle<Code> handler, | 169 Handle<Code> handler, |
170 Handle<String> name) { | 170 Handle<String> name) { |
171 set_target(*handler); | 171 set_target(*handler); |
172 } | 172 } |
173 bool UpdatePolymorphicIC(State state, | 173 bool UpdatePolymorphicIC(State state, |
174 StrictModeFlag strict_mode, | 174 StrictModeFlag strict_mode, |
175 Handle<JSObject> receiver, | 175 Handle<JSObject> receiver, |
176 Handle<String> name, | 176 Handle<String> name, |
177 Handle<Code> code); | 177 Handle<Code> code); |
178 void CopyICToMegamorphicCache(Handle<String> name); | 178 void CopyICToMegamorphicCache(Handle<String> name); |
| 179 bool IsTransitionedMapOfMonomorphicTarget(Map* receiver_map); |
179 void PatchCache(State state, | 180 void PatchCache(State state, |
180 StrictModeFlag strict_mode, | 181 StrictModeFlag strict_mode, |
181 Handle<JSObject> receiver, | 182 Handle<JSObject> receiver, |
182 Handle<String> name, | 183 Handle<String> name, |
183 Handle<Code> code); | 184 Handle<Code> code); |
184 virtual void UpdateMegamorphicCache(Map* map, String* name, Code* code); | 185 virtual void UpdateMegamorphicCache(Map* map, String* name, Code* code); |
185 virtual Handle<Code> megamorphic_stub() { | 186 virtual Handle<Code> megamorphic_stub() { |
186 UNREACHABLE(); | 187 UNREACHABLE(); |
187 return Handle<Code>::null(); | 188 return Handle<Code>::null(); |
188 } | 189 } |
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
783 | 784 |
784 // Helper for BinaryOpIC and CompareIC. | 785 // Helper for BinaryOpIC and CompareIC. |
785 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 786 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
786 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 787 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
787 | 788 |
788 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); | 789 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); |
789 | 790 |
790 } } // namespace v8::internal | 791 } } // namespace v8::internal |
791 | 792 |
792 #endif // V8_IC_H_ | 793 #endif // V8_IC_H_ |
OLD | NEW |