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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.h ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 4999 matching lines...) Expand 10 before | Expand all | Expand 10 after
5010 __ Move(result, ToRegister(instr->object())); 5010 __ Move(result, ToRegister(instr->object()));
5011 5011
5012 LOperand* key = instr->key(); 5012 LOperand* key = instr->key();
5013 if (key->IsConstantOperand()) { 5013 if (key->IsConstantOperand()) {
5014 __ Mov(x3, Operand(ToSmi(LConstantOperand::cast(key)))); 5014 __ Mov(x3, Operand(ToSmi(LConstantOperand::cast(key))));
5015 } else { 5015 } else {
5016 __ Mov(x3, ToRegister(key)); 5016 __ Mov(x3, ToRegister(key));
5017 __ SmiTag(x3); 5017 __ SmiTag(x3);
5018 } 5018 }
5019 5019
5020 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), 5020 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind());
5021 instr->hydrogen()->kind());
5022 __ CallStub(&stub); 5021 __ CallStub(&stub);
5023 RecordSafepointWithLazyDeopt( 5022 RecordSafepointWithLazyDeopt(
5024 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 5023 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
5025 __ StoreToSafepointRegisterSlot(result, result); 5024 __ StoreToSafepointRegisterSlot(result, result);
5026 } 5025 }
5027 5026
5028 // Deopt on smi, which means the elements array changed to dictionary mode. 5027 // Deopt on smi, which means the elements array changed to dictionary mode.
5029 DeoptimizeIfSmi(result, instr, DeoptimizeReason::kSmi); 5028 DeoptimizeIfSmi(result, instr, DeoptimizeReason::kSmi);
5030 } 5029 }
5031 5030
(...skipping 665 matching lines...) Expand 10 before | Expand all | Expand 10 after
5697 // Index is equal to negated out of object property index plus 1. 5696 // Index is equal to negated out of object property index plus 1.
5698 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5697 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5699 __ Ldr(result, FieldMemOperand(result, 5698 __ Ldr(result, FieldMemOperand(result,
5700 FixedArray::kHeaderSize - kPointerSize)); 5699 FixedArray::kHeaderSize - kPointerSize));
5701 __ Bind(deferred->exit()); 5700 __ Bind(deferred->exit());
5702 __ Bind(&done); 5701 __ Bind(&done);
5703 } 5702 }
5704 5703
5705 } // namespace internal 5704 } // namespace internal
5706 } // namespace v8 5705 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.h ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698