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 1655 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1666 | 1666 |
1667 MaybeObject* KeyedIC::ComputeMonomorphicStubWithoutMapCheck( | 1667 MaybeObject* KeyedIC::ComputeMonomorphicStubWithoutMapCheck( |
1668 Map* receiver_map, | 1668 Map* receiver_map, |
1669 StrictModeFlag strict_mode) { | 1669 StrictModeFlag strict_mode) { |
1670 if ((receiver_map->instance_type() & kNotStringTag) == 0) { | 1670 if ((receiver_map->instance_type() & kNotStringTag) == 0) { |
1671 ASSERT(string_stub() != NULL); | 1671 ASSERT(string_stub() != NULL); |
1672 return string_stub(); | 1672 return string_stub(); |
1673 } else { | 1673 } else { |
1674 ASSERT(receiver_map->has_dictionary_elements() || | 1674 ASSERT(receiver_map->has_dictionary_elements() || |
1675 receiver_map->has_fast_elements() || | 1675 receiver_map->has_fast_elements() || |
| 1676 receiver_map->has_fast_smi_only_elements() || |
1676 receiver_map->has_fast_double_elements() || | 1677 receiver_map->has_fast_double_elements() || |
1677 receiver_map->has_external_array_elements()); | 1678 receiver_map->has_external_array_elements()); |
1678 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; | 1679 bool is_js_array = receiver_map->instance_type() == JS_ARRAY_TYPE; |
1679 return GetElementStubWithoutMapCheck(is_js_array, | 1680 return GetElementStubWithoutMapCheck(is_js_array, |
1680 receiver_map->elements_kind()); | 1681 receiver_map->elements_kind()); |
1681 } | 1682 } |
1682 } | 1683 } |
1683 | 1684 |
1684 | 1685 |
1685 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, | 1686 MaybeObject* KeyedIC::ComputeMonomorphicStub(JSObject* receiver, |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2506 #undef ADDR | 2507 #undef ADDR |
2507 }; | 2508 }; |
2508 | 2509 |
2509 | 2510 |
2510 Address IC::AddressFromUtilityId(IC::UtilityId id) { | 2511 Address IC::AddressFromUtilityId(IC::UtilityId id) { |
2511 return IC_utilities[id]; | 2512 return IC_utilities[id]; |
2512 } | 2513 } |
2513 | 2514 |
2514 | 2515 |
2515 } } // namespace v8::internal | 2516 } } // namespace v8::internal |
OLD | NEW |