| OLD | NEW |
| 1 // Copyright 2012 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 |
| (...skipping 3305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3316 // (currently anything except for external arrays which means anything with | 3316 // (currently anything except for external arrays which means anything with |
| 3317 // elements of FixedArray type). Value must be a number, but only smis are | 3317 // elements of FixedArray type). Value must be a number, but only smis are |
| 3318 // accepted as the most common case. | 3318 // accepted as the most common case. |
| 3319 | 3319 |
| 3320 Label miss; | 3320 Label miss; |
| 3321 | 3321 |
| 3322 Register receiver = edx; | 3322 Register receiver = edx; |
| 3323 Register value = eax; | 3323 Register value = eax; |
| 3324 Register scratch = ebx; | 3324 Register scratch = ebx; |
| 3325 | 3325 |
| 3326 if (kind() == Code::KEYED_LOAD_IC) { | 3326 if (kind() == Code::KEYED_STORE_IC) { |
| 3327 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); | 3327 __ cmp(ecx, Immediate(masm->isolate()->factory()->length_symbol())); |
| 3328 __ j(not_equal, &miss); | 3328 __ j(not_equal, &miss); |
| 3329 } | 3329 } |
| 3330 | 3330 |
| 3331 // Check that the receiver isn't a smi. | 3331 // Check that the receiver isn't a smi. |
| 3332 __ JumpIfSmi(receiver, &miss); | 3332 __ JumpIfSmi(receiver, &miss); |
| 3333 | 3333 |
| 3334 // Check that the object is a JS array. | 3334 // Check that the object is a JS array. |
| 3335 __ CmpObjectType(receiver, JS_ARRAY_TYPE, scratch); | 3335 __ CmpObjectType(receiver, JS_ARRAY_TYPE, scratch); |
| 3336 __ j(not_equal, &miss); | 3336 __ j(not_equal, &miss); |
| (...skipping 4344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7681 // Restore ecx. | 7681 // Restore ecx. |
| 7682 __ pop(ecx); | 7682 __ pop(ecx); |
| 7683 __ ret(0); | 7683 __ ret(0); |
| 7684 } | 7684 } |
| 7685 | 7685 |
| 7686 #undef __ | 7686 #undef __ |
| 7687 | 7687 |
| 7688 } } // namespace v8::internal | 7688 } } // namespace v8::internal |
| 7689 | 7689 |
| 7690 #endif // V8_TARGET_ARCH_IA32 | 7690 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |