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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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-codegen-arm64.cc ('k') | src/crankshaft/ia32/lithium-ia32.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 3964 matching lines...) Expand 10 before | Expand all | Expand 10 after
3975 } else { 3975 } else {
3976 // We should never get here at runtime because there is a smi check on 3976 // We should never get here at runtime because there is a smi check on
3977 // the key before this point. 3977 // the key before this point.
3978 __ int3(); 3978 __ int3();
3979 } 3979 }
3980 } else { 3980 } else {
3981 __ Move(ebx, ToRegister(key)); 3981 __ Move(ebx, ToRegister(key));
3982 __ SmiTag(ebx); 3982 __ SmiTag(ebx);
3983 } 3983 }
3984 3984
3985 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->is_js_array(), 3985 GrowArrayElementsStub stub(isolate(), instr->hydrogen()->kind());
3986 instr->hydrogen()->kind());
3987 __ CallStub(&stub); 3986 __ CallStub(&stub);
3988 RecordSafepointWithLazyDeopt( 3987 RecordSafepointWithLazyDeopt(
3989 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS); 3988 instr, RECORD_SAFEPOINT_WITH_REGISTERS_AND_NO_ARGUMENTS);
3990 __ StoreToSafepointRegisterSlot(result, result); 3989 __ StoreToSafepointRegisterSlot(result, result);
3991 } 3990 }
3992 3991
3993 // Deopt on smi, which means the elements array changed to dictionary mode. 3992 // Deopt on smi, which means the elements array changed to dictionary mode.
3994 __ test(result, Immediate(kSmiTagMask)); 3993 __ test(result, Immediate(kSmiTagMask));
3995 DeoptimizeIf(equal, instr, DeoptimizeReason::kSmi); 3994 DeoptimizeIf(equal, instr, DeoptimizeReason::kSmi);
3996 } 3995 }
(...skipping 1286 matching lines...) Expand 10 before | Expand all | Expand 10 after
5283 __ bind(deferred->exit()); 5282 __ bind(deferred->exit());
5284 __ bind(&done); 5283 __ bind(&done);
5285 } 5284 }
5286 5285
5287 #undef __ 5286 #undef __
5288 5287
5289 } // namespace internal 5288 } // namespace internal
5290 } // namespace v8 5289 } // namespace v8
5291 5290
5292 #endif // V8_TARGET_ARCH_IA32 5291 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-codegen-arm64.cc ('k') | src/crankshaft/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698