| 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 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1809 ? generic_stub_strict() | 1809 ? generic_stub_strict() |
| 1810 : generic_stub(); | 1810 : generic_stub(); |
| 1811 if (object->IsJSObject()) { | 1811 if (object->IsJSObject()) { |
| 1812 JSObject* receiver = JSObject::cast(*object); | 1812 JSObject* receiver = JSObject::cast(*object); |
| 1813 Heap* heap = Handle<JSObject>::cast(object)->GetHeap(); | 1813 Heap* heap = Handle<JSObject>::cast(object)->GetHeap(); |
| 1814 Map* elements_map = Handle<JSObject>::cast(object)->elements()->map(); | 1814 Map* elements_map = Handle<JSObject>::cast(object)->elements()->map(); |
| 1815 if (elements_map == heap->non_strict_arguments_elements_map()) { | 1815 if (elements_map == heap->non_strict_arguments_elements_map()) { |
| 1816 stub = non_strict_arguments_stub(); | 1816 stub = non_strict_arguments_stub(); |
| 1817 } else if (!force_generic) { | 1817 } else if (!force_generic) { |
| 1818 if (key->IsSmi() && (target() != non_strict_arguments_stub())) { | 1818 if (key->IsSmi() && (target() != non_strict_arguments_stub())) { |
| 1819 HandleScope scope(isolate()); |
| 1819 MaybeObject* maybe_stub = ComputeStub(receiver, | 1820 MaybeObject* maybe_stub = ComputeStub(receiver, |
| 1820 true, | 1821 true, |
| 1821 strict_mode, | 1822 strict_mode, |
| 1822 stub); | 1823 stub); |
| 1823 stub = maybe_stub->IsFailure() ? | 1824 stub = maybe_stub->IsFailure() ? |
| 1824 NULL : Code::cast(maybe_stub->ToObjectUnchecked()); | 1825 NULL : Code::cast(maybe_stub->ToObjectUnchecked()); |
| 1825 } | 1826 } |
| 1826 } | 1827 } |
| 1827 } | 1828 } |
| 1828 if (stub != NULL) set_target(stub); | 1829 if (stub != NULL) set_target(stub); |
| (...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2521 #undef ADDR | 2522 #undef ADDR |
| 2522 }; | 2523 }; |
| 2523 | 2524 |
| 2524 | 2525 |
| 2525 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2526 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
| 2526 return IC_utilities[id]; | 2527 return IC_utilities[id]; |
| 2527 } | 2528 } |
| 2528 | 2529 |
| 2529 | 2530 |
| 2530 } } // namespace v8::internal | 2531 } } // namespace v8::internal |
| OLD | NEW |