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