| 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 900 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 911 // Check for fast double array case. If this fails, call through to the | 911 // Check for fast double array case. If this fails, call through to the |
| 912 // runtime. | 912 // runtime. |
| 913 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); | 913 __ LoadRoot(at, Heap::kFixedDoubleArrayMapRootIndex); |
| 914 __ Branch(slow, ne, elements_map, Operand(at)); | 914 __ Branch(slow, ne, elements_map, Operand(at)); |
| 915 } | 915 } |
| 916 | 916 |
| 917 // HOLECHECK: guards "A[i] double hole?" | 917 // HOLECHECK: guards "A[i] double hole?" |
| 918 // We have to see if the double version of the hole is present. If so | 918 // We have to see if the double version of the hole is present. If so |
| 919 // go to the runtime. | 919 // go to the runtime. |
| 920 __ Addu(address, elements, | 920 __ Addu(address, elements, |
| 921 Operand(FixedDoubleArray::kHeaderSize + sizeof(kHoleNanLower32) | 921 Operand(FixedDoubleArray::kHeaderSize + kHoleNanUpper32Offset |
| 922 - kHeapObjectTag)); | 922 - kHeapObjectTag)); |
| 923 __ sll(at, key, kPointerSizeLog2); | 923 __ sll(at, key, kPointerSizeLog2); |
| 924 __ addu(address, address, at); | 924 __ addu(address, address, at); |
| 925 __ lw(scratch_value, MemOperand(address)); | 925 __ lw(scratch_value, MemOperand(address)); |
| 926 __ Branch(&fast_double_without_map_check, ne, scratch_value, | 926 __ Branch(&fast_double_without_map_check, ne, scratch_value, |
| 927 Operand(kHoleNanUpper32)); | 927 Operand(kHoleNanUpper32)); |
| 928 __ JumpIfDictionaryInPrototypeChain(receiver, elements_map, scratch_value, | 928 __ JumpIfDictionaryInPrototypeChain(receiver, elements_map, scratch_value, |
| 929 slow); | 929 slow); |
| 930 | 930 |
| 931 __ bind(&fast_double_without_map_check); | 931 __ bind(&fast_double_without_map_check); |
| (...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 } else { | 1350 } else { |
| 1351 ASSERT(Assembler::IsBne(branch_instr)); | 1351 ASSERT(Assembler::IsBne(branch_instr)); |
| 1352 patcher.ChangeBranchCondition(eq); | 1352 patcher.ChangeBranchCondition(eq); |
| 1353 } | 1353 } |
| 1354 } | 1354 } |
| 1355 | 1355 |
| 1356 | 1356 |
| 1357 } } // namespace v8::internal | 1357 } } // namespace v8::internal |
| 1358 | 1358 |
| 1359 #endif // V8_TARGET_ARCH_MIPS | 1359 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |