OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 | 314 |
315 private: | 315 private: |
316 // Update the inline cache and the global stub cache based on the | 316 // Update the inline cache and the global stub cache based on the |
317 // lookup result. | 317 // lookup result. |
318 void UpdateCaches(LookupResult* lookup, | 318 void UpdateCaches(LookupResult* lookup, |
319 State state, | 319 State state, |
320 Handle<Object> object, | 320 Handle<Object> object, |
321 Handle<String> name); | 321 Handle<String> name); |
322 | 322 |
323 // Stub accessors. | 323 // Stub accessors. |
324 Code* megamorphic_stub() { | 324 Handle<Code> megamorphic_stub() { |
325 return isolate()->builtins()->builtin( | 325 return isolate()->builtins()->LoadIC_Megamorphic(); |
326 Builtins::kLoadIC_Megamorphic); | |
327 } | 326 } |
328 static Code* initialize_stub() { | 327 static Code* initialize_stub() { |
329 return Isolate::Current()->builtins()->builtin( | 328 return Isolate::Current()->builtins()->builtin( |
330 Builtins::kLoadIC_Initialize); | 329 Builtins::kLoadIC_Initialize); |
331 } | 330 } |
332 Code* pre_monomorphic_stub() { | 331 Handle<Code> pre_monomorphic_stub() { |
333 return isolate()->builtins()->builtin( | 332 return isolate()->builtins()->LoadIC_PreMonomorphic(); |
334 Builtins::kLoadIC_PreMonomorphic); | |
335 } | 333 } |
336 | 334 |
337 static void Clear(Address address, Code* target); | 335 static void Clear(Address address, Code* target); |
338 | 336 |
339 friend class IC; | 337 friend class IC; |
340 }; | 338 }; |
341 | 339 |
342 | 340 |
343 class KeyedIC: public IC { | 341 class KeyedIC: public IC { |
344 public: | 342 public: |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
737 void patch(Code* code); | 735 void patch(Code* code); |
738 }; | 736 }; |
739 | 737 |
740 | 738 |
741 // Helper for BinaryOpIC and CompareIC. | 739 // Helper for BinaryOpIC and CompareIC. |
742 void PatchInlinedSmiCode(Address address); | 740 void PatchInlinedSmiCode(Address address); |
743 | 741 |
744 } } // namespace v8::internal | 742 } } // namespace v8::internal |
745 | 743 |
746 #endif // V8_IC_H_ | 744 #endif // V8_IC_H_ |
OLD | NEW |