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 1671 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1682 } | 1682 } |
1683 } | 1683 } |
1684 | 1684 |
1685 | 1685 |
1686 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, | 1686 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, |
1687 bool is_store, | 1687 bool is_store, |
1688 StrictModeFlag strict_mode, | 1688 StrictModeFlag strict_mode, |
1689 Code* generic_stub) { | 1689 Code* generic_stub) { |
1690 Code* result = NULL; | 1690 Code* result = NULL; |
1691 if (receiver->HasFastElements() || | 1691 if (receiver->HasFastElements() || |
| 1692 receiver->HasFastSmiOnlyElements() || |
1692 receiver->HasExternalArrayElements() || | 1693 receiver->HasExternalArrayElements() || |
1693 receiver->HasFastDoubleElements() || | 1694 receiver->HasFastDoubleElements() || |
1694 receiver->HasDictionaryElements()) { | 1695 receiver->HasDictionaryElements()) { |
1695 MaybeObject* maybe_stub = | 1696 MaybeObject* maybe_stub = |
1696 isolate()->stub_cache()->ComputeKeyedLoadOrStoreElement( | 1697 isolate()->stub_cache()->ComputeKeyedLoadOrStoreElement( |
1697 receiver, is_store, strict_mode); | 1698 receiver, is_store, strict_mode); |
1698 if (!maybe_stub->To(&result)) return maybe_stub; | 1699 if (!maybe_stub->To(&result)) return maybe_stub; |
1699 } else { | 1700 } else { |
1700 result = generic_stub; | 1701 result = generic_stub; |
1701 } | 1702 } |
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2507 #undef ADDR | 2508 #undef ADDR |
2508 }; | 2509 }; |
2509 | 2510 |
2510 | 2511 |
2511 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2512 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2512 return IC_utilities[id]; | 2513 return IC_utilities[id]; |
2513 } | 2514 } |
2514 | 2515 |
2515 | 2516 |
2516 } } // namespace v8::internal | 2517 } } // namespace v8::internal |
OLD | NEW |