| 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 1729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1740 } | 1740 } |
| 1741 } | 1741 } |
| 1742 | 1742 |
| 1743 | 1743 |
| 1744 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, | 1744 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, |
| 1745 bool is_store, | 1745 bool is_store, |
| 1746 StrictModeFlag strict_mode, | 1746 StrictModeFlag strict_mode, |
| 1747 Code* generic_stub) { | 1747 Code* generic_stub) { |
| 1748 Code* result = NULL; | 1748 Code* result = NULL; |
| 1749 if (receiver->HasFastElements() || | 1749 if (receiver->HasFastElements() || |
| 1750 receiver->HasExternalArrayElements()) { | 1750 receiver->HasExternalArrayElements() || |
| 1751 receiver->HasDictionaryElements()) { |
| 1751 MaybeObject* maybe_stub = | 1752 MaybeObject* maybe_stub = |
| 1752 isolate()->stub_cache()->ComputeKeyedLoadOrStoreElement( | 1753 isolate()->stub_cache()->ComputeKeyedLoadOrStoreElement( |
| 1753 receiver, is_store, strict_mode); | 1754 receiver, is_store, strict_mode); |
| 1754 if (!maybe_stub->To(&result)) return maybe_stub; | 1755 if (!maybe_stub->To(&result)) return maybe_stub; |
| 1755 } else { | 1756 } else { |
| 1756 result = generic_stub; | 1757 result = generic_stub; |
| 1757 } | 1758 } |
| 1758 return result; | 1759 return result; |
| 1759 } | 1760 } |
| 1760 | 1761 |
| (...skipping 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2561 #undef ADDR | 2562 #undef ADDR |
| 2562 }; | 2563 }; |
| 2563 | 2564 |
| 2564 | 2565 |
| 2565 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2566 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2566 return IC_utilities[id]; | 2567 return IC_utilities[id]; |
| 2567 } | 2568 } |
| 2568 | 2569 |
| 2569 | 2570 |
| 2570 } } // namespace v8::internal | 2571 } } // namespace v8::internal |
| OLD | NEW |