| 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 1654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1665 | 1665 |
| 1666 if (use_ic) { | 1666 if (use_ic) { |
| 1667 Handle<Code> stub = (strict_mode == kStrictMode) | 1667 Handle<Code> stub = (strict_mode == kStrictMode) |
| 1668 ? generic_stub_strict() | 1668 ? generic_stub_strict() |
| 1669 : generic_stub(); | 1669 : generic_stub(); |
| 1670 if (object->IsJSObject()) { | 1670 if (object->IsJSObject()) { |
| 1671 Handle<JSObject> receiver = Handle<JSObject>::cast(object); | 1671 Handle<JSObject> receiver = Handle<JSObject>::cast(object); |
| 1672 if (receiver->elements()->map() == | 1672 if (receiver->elements()->map() == |
| 1673 isolate()->heap()->non_strict_arguments_elements_map()) { | 1673 isolate()->heap()->non_strict_arguments_elements_map()) { |
| 1674 stub = non_strict_arguments_stub(); | 1674 stub = non_strict_arguments_stub(); |
| 1675 } else if (receiver->elements()->map() == |
| 1676 isolate()->heap()->fixed_cow_array_map()) { |
| 1677 // Do nothing, just keep the generic stub. |
| 1675 } else if (!force_generic) { | 1678 } else if (!force_generic) { |
| 1676 if (key->IsSmi() && (target() != *non_strict_arguments_stub())) { | 1679 if (key->IsSmi() && (target() != *non_strict_arguments_stub())) { |
| 1677 StubKind stub_kind = STORE_NO_TRANSITION; | 1680 StubKind stub_kind = STORE_NO_TRANSITION; |
| 1678 if (receiver->GetElementsKind() == FAST_SMI_ONLY_ELEMENTS) { | 1681 if (receiver->GetElementsKind() == FAST_SMI_ONLY_ELEMENTS) { |
| 1679 if (value->IsHeapNumber()) { | 1682 if (value->IsHeapNumber()) { |
| 1680 stub_kind = STORE_TRANSITION_SMI_TO_DOUBLE; | 1683 stub_kind = STORE_TRANSITION_SMI_TO_DOUBLE; |
| 1681 } else if (value->IsHeapObject()) { | 1684 } else if (value->IsHeapObject()) { |
| 1682 stub_kind = STORE_TRANSITION_SMI_TO_OBJECT; | 1685 stub_kind = STORE_TRANSITION_SMI_TO_OBJECT; |
| 1683 } | 1686 } |
| 1684 } else if (receiver->GetElementsKind() == FAST_DOUBLE_ELEMENTS) { | 1687 } else if (receiver->GetElementsKind() == FAST_DOUBLE_ELEMENTS) { |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2393 #undef ADDR | 2396 #undef ADDR |
| 2394 }; | 2397 }; |
| 2395 | 2398 |
| 2396 | 2399 |
| 2397 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2400 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2398 return IC_utilities[id]; | 2401 return IC_utilities[id]; |
| 2399 } | 2402 } |
| 2400 | 2403 |
| 2401 | 2404 |
| 2402 } } // namespace v8::internal | 2405 } } // namespace v8::internal |
| OLD | NEW |