| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_MIPS64 | 5 #if V8_TARGET_ARCH_MIPS64 |
| 6 | 6 |
| 7 // Note on Mips implementation: | 7 // Note on Mips implementation: |
| 8 // | 8 // |
| 9 // The result_register() for mips is the 'v0' register, which is defined | 9 // The result_register() for mips is the 'v0' register, which is defined |
| 10 // by the ABI to contain function return values. However, the first | 10 // by the ABI to contain function return values. However, the first |
| (...skipping 1104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1115 __ bind(&fixed_array); | 1115 __ bind(&fixed_array); |
| 1116 | 1116 |
| 1117 __ EmitLoadTypeFeedbackVector(a1); | 1117 __ EmitLoadTypeFeedbackVector(a1); |
| 1118 __ li(a2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); | 1118 __ li(a2, Operand(TypeFeedbackVector::MegamorphicSentinel(isolate()))); |
| 1119 int vector_index = SmiFromSlot(slot)->value(); | 1119 int vector_index = SmiFromSlot(slot)->value(); |
| 1120 __ sd(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(vector_index))); | 1120 __ sd(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(vector_index))); |
| 1121 | 1121 |
| 1122 __ li(a1, Operand(Smi::FromInt(1))); // Smi(1) indicates slow check | 1122 __ li(a1, Operand(Smi::FromInt(1))); // Smi(1) indicates slow check |
| 1123 __ Push(a1, v0); // Smi and array | 1123 __ Push(a1, v0); // Smi and array |
| 1124 __ ld(a1, FieldMemOperand(v0, FixedArray::kLengthOffset)); | 1124 __ ld(a1, FieldMemOperand(v0, FixedArray::kLengthOffset)); |
| 1125 __ Push(a1); // Fixed array length (as smi). |
| 1126 PrepareForBailoutForId(stmt->PrepareId(), NO_REGISTERS); |
| 1125 __ li(a0, Operand(Smi::FromInt(0))); | 1127 __ li(a0, Operand(Smi::FromInt(0))); |
| 1126 __ Push(a1, a0); // Fixed array length (as smi) and initial index. | 1128 __ Push(a0); // Initial index. |
| 1127 | 1129 |
| 1128 // Generate code for doing the condition check. | 1130 // Generate code for doing the condition check. |
| 1129 __ bind(&loop); | 1131 __ bind(&loop); |
| 1130 SetExpressionAsStatementPosition(stmt->each()); | 1132 SetExpressionAsStatementPosition(stmt->each()); |
| 1131 | 1133 |
| 1132 // Load the current count to a0, load the length to a1. | 1134 // Load the current count to a0, load the length to a1. |
| 1133 __ ld(a0, MemOperand(sp, 0 * kPointerSize)); | 1135 __ ld(a0, MemOperand(sp, 0 * kPointerSize)); |
| 1134 __ ld(a1, MemOperand(sp, 1 * kPointerSize)); | 1136 __ ld(a1, MemOperand(sp, 1 * kPointerSize)); |
| 1135 __ Branch(loop_statement.break_label(), hs, a0, Operand(a1)); | 1137 __ Branch(loop_statement.break_label(), hs, a0, Operand(a1)); |
| 1136 | 1138 |
| (...skipping 3679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4816 reinterpret_cast<uint64_t>( | 4818 reinterpret_cast<uint64_t>( |
| 4817 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4819 isolate->builtins()->OsrAfterStackCheck()->entry())); |
| 4818 return OSR_AFTER_STACK_CHECK; | 4820 return OSR_AFTER_STACK_CHECK; |
| 4819 } | 4821 } |
| 4820 | 4822 |
| 4821 | 4823 |
| 4822 } // namespace internal | 4824 } // namespace internal |
| 4823 } // namespace v8 | 4825 } // namespace v8 |
| 4824 | 4826 |
| 4825 #endif // V8_TARGET_ARCH_MIPS64 | 4827 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |