Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.cc

Issue 1630523002: [turbofan] Switch JSForInPrepare to %ForInPrepare style. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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
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 __ sw(a2, FieldMemOperand(a1, FixedArray::OffsetOfElementAt(vector_index))); 1120 __ sw(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 __ lw(a1, FieldMemOperand(v0, FixedArray::kLengthOffset)); 1124 __ lw(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 __ lw(a0, MemOperand(sp, 0 * kPointerSize)); 1135 __ lw(a0, MemOperand(sp, 0 * kPointerSize));
1134 __ lw(a1, MemOperand(sp, 1 * kPointerSize)); 1136 __ lw(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 3664 matching lines...) Expand 10 before | Expand all | Expand 10 after
4801 reinterpret_cast<uint32_t>( 4803 reinterpret_cast<uint32_t>(
4802 isolate->builtins()->OsrAfterStackCheck()->entry())); 4804 isolate->builtins()->OsrAfterStackCheck()->entry()));
4803 return OSR_AFTER_STACK_CHECK; 4805 return OSR_AFTER_STACK_CHECK;
4804 } 4806 }
4805 4807
4806 4808
4807 } // namespace internal 4809 } // namespace internal
4808 } // namespace v8 4810 } // namespace v8
4809 4811
4810 #endif // V8_TARGET_ARCH_MIPS 4812 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698