| 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 927 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 938 __ JumpIfNotSmi(key, &check_string); | 938 __ JumpIfNotSmi(key, &check_string); |
| 939 __ bind(&index_smi); | 939 __ bind(&index_smi); |
| 940 // Now the key is known to be a smi. This place is also jumped to from below | 940 // Now the key is known to be a smi. This place is also jumped to from below |
| 941 // where a numeric string is converted to a smi. | 941 // where a numeric string is converted to a smi. |
| 942 | 942 |
| 943 GenerateKeyedLoadReceiverCheck( | 943 GenerateKeyedLoadReceiverCheck( |
| 944 masm, receiver, r2, r3, Map::kHasIndexedInterceptor, &slow); | 944 masm, receiver, r2, r3, Map::kHasIndexedInterceptor, &slow); |
| 945 | 945 |
| 946 // Check the "has fast elements" bit in the receiver's map which is | 946 // Check the "has fast elements" bit in the receiver's map which is |
| 947 // now in r2. | 947 // now in r2. |
| 948 __ ldrb(r3, FieldMemOperand(r2, Map::kBitField2Offset)); | 948 __ CheckFastElements(r2, r3, &check_number_dictionary); |
| 949 __ tst(r3, Operand(1 << Map::kHasFastElements)); | |
| 950 __ b(eq, &check_number_dictionary); | |
| 951 | 949 |
| 952 GenerateFastArrayLoad( | 950 GenerateFastArrayLoad( |
| 953 masm, receiver, key, r4, r3, r2, r0, NULL, &slow); | 951 masm, receiver, key, r4, r3, r2, r0, NULL, &slow); |
| 954 __ IncrementCounter(isolate->counters()->keyed_load_generic_smi(), 1, r2, r3); | 952 __ IncrementCounter(isolate->counters()->keyed_load_generic_smi(), 1, r2, r3); |
| 955 __ Ret(); | 953 __ Ret(); |
| 956 | 954 |
| 957 __ bind(&check_number_dictionary); | 955 __ bind(&check_number_dictionary); |
| 958 __ ldr(r4, FieldMemOperand(receiver, JSObject::kElementsOffset)); | 956 __ ldr(r4, FieldMemOperand(receiver, JSObject::kElementsOffset)); |
| 959 __ ldr(r3, FieldMemOperand(r4, JSObject::kMapOffset)); | 957 __ ldr(r3, FieldMemOperand(r4, JSObject::kMapOffset)); |
| 960 | 958 |
| (...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1553 Register reg = Assembler::GetRn(instr_at_patch); | 1551 Register reg = Assembler::GetRn(instr_at_patch); |
| 1554 patcher.masm()->tst(reg, Operand(kSmiTagMask)); | 1552 patcher.masm()->tst(reg, Operand(kSmiTagMask)); |
| 1555 patcher.EmitCondition(eq); | 1553 patcher.EmitCondition(eq); |
| 1556 } | 1554 } |
| 1557 } | 1555 } |
| 1558 | 1556 |
| 1559 | 1557 |
| 1560 } } // namespace v8::internal | 1558 } } // namespace v8::internal |
| 1561 | 1559 |
| 1562 #endif // V8_TARGET_ARCH_ARM | 1560 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |