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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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/mips64/lithium-mips64.h ('k') | src/crankshaft/x64/lithium-x64.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 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 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 4242 matching lines...) Expand 10 before | Expand all | Expand 10 after
4253 } 4253 }
4254 4254
4255 LOperand* key = instr->key(); 4255 LOperand* key = instr->key();
4256 if (key->IsConstantOperand()) { 4256 if (key->IsConstantOperand()) {
4257 __ Move(rbx, ToSmi(LConstantOperand::cast(key))); 4257 __ Move(rbx, ToSmi(LConstantOperand::cast(key)));
4258 } else { 4258 } else {
4259 __ Move(rbx, ToRegister(key)); 4259 __ Move(rbx, ToRegister(key));
4260 __ Integer32ToSmi(rbx, rbx); 4260 __ Integer32ToSmi(rbx, rbx);
4261 } 4261 }
4262 4262
4263 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), 4263 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind());
4264 instr->hydrogen()->kind());
4265 __ CallStub(&stub); 4264 __ CallStub(&stub);
4266 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); 4265 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0);
4267 __ StoreToSafepointRegisterSlot(result, result); 4266 __ StoreToSafepointRegisterSlot(result, result);
4268 } 4267 }
4269 4268
4270 // Deopt on smi, which means the elements array changed to dictionary mode. 4269 // Deopt on smi, which means the elements array changed to dictionary mode.
4271 Condition is_smi = __ CheckSmi(result); 4270 Condition is_smi = __ CheckSmi(result);
4272 DeoptimizeIf(is_smi, instr, DeoptimizeReason::kSmi); 4271 DeoptimizeIf(is_smi, instr, DeoptimizeReason::kSmi);
4273 } 4272 }
4274 4273
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
5566 __ bind(deferred->exit()); 5565 __ bind(deferred->exit());
5567 __ bind(&done); 5566 __ bind(&done);
5568 } 5567 }
5569 5568
5570 #undef __ 5569 #undef __
5571 5570
5572 } // namespace internal 5571 } // namespace internal
5573 } // namespace v8 5572 } // namespace v8
5574 5573
5575 #endif // V8_TARGET_ARCH_X64 5574 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/mips64/lithium-mips64.h ('k') | src/crankshaft/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698