OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 1658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1670 | 1670 |
1671 if (use_ic) { | 1671 if (use_ic) { |
1672 Handle<Code> stub = (strict_mode == kStrictMode) | 1672 Handle<Code> stub = (strict_mode == kStrictMode) |
1673 ? generic_stub_strict() | 1673 ? generic_stub_strict() |
1674 : generic_stub(); | 1674 : generic_stub(); |
1675 if (object->IsJSObject()) { | 1675 if (object->IsJSObject()) { |
1676 Handle<JSObject> receiver = Handle<JSObject>::cast(object); | 1676 Handle<JSObject> receiver = Handle<JSObject>::cast(object); |
1677 if (receiver->elements()->map() == | 1677 if (receiver->elements()->map() == |
1678 isolate()->heap()->non_strict_arguments_elements_map()) { | 1678 isolate()->heap()->non_strict_arguments_elements_map()) { |
1679 stub = non_strict_arguments_stub(); | 1679 stub = non_strict_arguments_stub(); |
| 1680 } else if (receiver->elements()->map() == |
| 1681 isolate()->heap()->fixed_cow_array_map()) { |
| 1682 // Do nothing, just keep the generic stub. |
1680 } else if (!force_generic) { | 1683 } else if (!force_generic) { |
1681 if (key->IsSmi() && (target() != *non_strict_arguments_stub())) { | 1684 if (key->IsSmi() && (target() != *non_strict_arguments_stub())) { |
1682 StubKind stub_kind = STORE_NO_TRANSITION; | 1685 StubKind stub_kind = STORE_NO_TRANSITION; |
1683 if (receiver->GetElementsKind() == FAST_SMI_ONLY_ELEMENTS) { | 1686 if (receiver->GetElementsKind() == FAST_SMI_ONLY_ELEMENTS) { |
1684 if (value->IsHeapNumber()) { | 1687 if (value->IsHeapNumber()) { |
1685 stub_kind = STORE_TRANSITION_SMI_TO_DOUBLE; | 1688 stub_kind = STORE_TRANSITION_SMI_TO_DOUBLE; |
1686 } else if (value->IsHeapObject()) { | 1689 } else if (value->IsHeapObject()) { |
1687 stub_kind = STORE_TRANSITION_SMI_TO_OBJECT; | 1690 stub_kind = STORE_TRANSITION_SMI_TO_OBJECT; |
1688 } | 1691 } |
1689 } else if (receiver->GetElementsKind() == FAST_DOUBLE_ELEMENTS) { | 1692 } else if (receiver->GetElementsKind() == FAST_DOUBLE_ELEMENTS) { |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2425 #undef ADDR | 2428 #undef ADDR |
2426 }; | 2429 }; |
2427 | 2430 |
2428 | 2431 |
2429 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2432 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2430 return IC_utilities[id]; | 2433 return IC_utilities[id]; |
2431 } | 2434 } |
2432 | 2435 |
2433 | 2436 |
2434 } } // namespace v8::internal | 2437 } } // namespace v8::internal |
OLD | NEW |