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

Side by Side Diff: src/crankshaft/arm/lithium-codegen-arm.cc

Issue 2206333003: [stubs] Convert GrowElementsStub to TurboFan (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm64/lithium-arm64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "src/crankshaft/arm/lithium-codegen-arm.h" 5 #include "src/crankshaft/arm/lithium-codegen-arm.h"
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h" 10 #include "src/crankshaft/arm/lithium-gap-resolver-arm.h"
(...skipping 4152 matching lines...) Expand 10 before | Expand all | Expand 10 after
4163 } else { 4163 } else {
4164 // We should never get here at runtime because there is a smi check on 4164 // We should never get here at runtime because there is a smi check on
4165 // the key before this point. 4165 // the key before this point.
4166 __ stop("expected smi"); 4166 __ stop("expected smi");
4167 } 4167 }
4168 } else { 4168 } else {
4169 __ Move(r3, ToRegister(key)); 4169 __ Move(r3, ToRegister(key));
4170 __ SmiTag(r3); 4170 __ SmiTag(r3);
4171 } 4171 }
4172 4172
4173 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), 4173 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind());
4174 instr->hydrogen()->kind());
4175 __ CallStub(&stub); 4174 __ CallStub(&stub);
4176 RecordSafepointWithLazyDeopt( 4175 RecordSafepointWithLazyDeopt(
4177 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 4176 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
4178 __ StoreToSafepointRegisterSlot(result, result); 4177 __ StoreToSafepointRegisterSlot(result, result);
4179 } 4178 }
4180 4179
4181 // Deopt on smi, which means the elements array changed to dictionary mode. 4180 // Deopt on smi, which means the elements array changed to dictionary mode.
4182 __ SmiTst(result); 4181 __ SmiTst(result);
4183 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi); 4182 DeoptimizeIf(eq, instr, DeoptimizeReason::kSmi);
4184 } 4183 }
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after
5526 __ ldr(result, FieldMemOperand(scratch, 5525 __ ldr(result, FieldMemOperand(scratch,
5527 FixedArray::kHeaderSize - kPointerSize)); 5526 FixedArray::kHeaderSize - kPointerSize));
5528 __ bind(deferred->exit()); 5527 __ bind(deferred->exit());
5529 __ bind(&done); 5528 __ bind(&done);
5530 } 5529 }
5531 5530
5532 #undef __ 5531 #undef __
5533 5532
5534 } // namespace internal 5533 } // namespace internal
5535 } // namespace v8 5534 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-arm.h ('k') | src/crankshaft/arm64/lithium-arm64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698