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 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 return Builtins::builtin(Builtins::KeyedStoreIC_Generic); | 380 return Builtins::builtin(Builtins::KeyedStoreIC_Generic); |
381 } | 381 } |
382 static Code* generic_stub() { | 382 static Code* generic_stub() { |
383 return Builtins::builtin(Builtins::KeyedStoreIC_Generic); | 383 return Builtins::builtin(Builtins::KeyedStoreIC_Generic); |
384 } | 384 } |
385 | 385 |
386 static void Clear(Address address, Code* target); | 386 static void Clear(Address address, Code* target); |
387 | 387 |
388 // Support for patching the map that is checked in an inlined | 388 // Support for patching the map that is checked in an inlined |
389 // version of keyed store. | 389 // version of keyed store. |
| 390 // The address is the patch point for the IC call |
| 391 // (Assembler::kTargetAddrToReturnAddrDist before the end of |
| 392 // the call/return address). |
| 393 // The map is the new map that the inlined code should check against. |
390 static bool PatchInlinedStore(Address address, Object* map); | 394 static bool PatchInlinedStore(Address address, Object* map); |
391 | 395 |
392 friend class IC; | 396 friend class IC; |
393 }; | 397 }; |
394 | 398 |
395 | 399 |
396 } } // namespace v8::internal | 400 } } // namespace v8::internal |
397 | 401 |
398 #endif // V8_IC_H_ | 402 #endif // V8_IC_H_ |
OLD | NEW |