| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 | 151 |
| 152 // r2 holds global context, r1 points to fixed array of 3-element entries | 152 // r2 holds global context, r1 points to fixed array of 3-element entries |
| 153 // (global context, optimized code, literals). | 153 // (global context, optimized code, literals). |
| 154 // The optimized code map must never be empty, so check the first elements. | 154 // The optimized code map must never be empty, so check the first elements. |
| 155 Label install_optimized; | 155 Label install_optimized; |
| 156 // Speculatively move code object into r4. | 156 // Speculatively move code object into r4. |
| 157 __ ldr(r4, FieldMemOperand(r1, FixedArray::kHeaderSize + kPointerSize)); | 157 __ ldr(r4, FieldMemOperand(r1, FixedArray::kHeaderSize + kPointerSize)); |
| 158 __ ldr(r5, FieldMemOperand(r1, FixedArray::kHeaderSize)); | 158 __ ldr(r5, FieldMemOperand(r1, FixedArray::kHeaderSize)); |
| 159 __ cmp(r2, r5); | 159 __ cmp(r2, r5); |
| 160 __ b(eq, &install_optimized); | 160 __ b(eq, &install_optimized); |
| 161 __ b(&install_unoptimized); | |
| 162 | 161 |
| 163 // Iterate through the rest of map backwards. r4 holds an index as a Smi. | 162 // Iterate through the rest of map backwards. r4 holds an index as a Smi. |
| 164 Label loop; | 163 Label loop; |
| 165 __ ldr(r4, FieldMemOperand(r1, FixedArray::kLengthOffset)); | 164 __ ldr(r4, FieldMemOperand(r1, FixedArray::kLengthOffset)); |
| 166 __ bind(&loop); | 165 __ bind(&loop); |
| 167 // Do not double check first entry. | 166 // Do not double check first entry. |
| 168 | 167 |
| 169 __ cmp(r4, Operand(Smi::FromInt(SharedFunctionInfo::kEntryLength))); | 168 __ cmp(r4, Operand(Smi::FromInt(SharedFunctionInfo::kEntryLength))); |
| 170 __ b(eq, &install_unoptimized); | 169 __ b(eq, &install_unoptimized); |
| 171 __ sub(r4, r4, Operand( | 170 __ sub(r4, r4, Operand( |
| (...skipping 7340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7512 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2, | 7511 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2, |
| 7513 &slow_elements); | 7512 &slow_elements); |
| 7514 __ Ret(); | 7513 __ Ret(); |
| 7515 } | 7514 } |
| 7516 | 7515 |
| 7517 #undef __ | 7516 #undef __ |
| 7518 | 7517 |
| 7519 } } // namespace v8::internal | 7518 } } // namespace v8::internal |
| 7520 | 7519 |
| 7521 #endif // V8_TARGET_ARCH_ARM | 7520 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |