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

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

Issue 2064993002: [stubs] Remove the is_jsarray bit from the TransitionElementsKindStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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-codegen-arm.cc ('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 5439 matching lines...) Expand 10 before | Expand all | Expand 10 after
5450 UseScratchRegisterScope temps(masm()); 5450 UseScratchRegisterScope temps(masm());
5451 // Use the temp register only in a restricted scope - the codegen checks 5451 // Use the temp register only in a restricted scope - the codegen checks
5452 // that we do not use any register across a call. 5452 // that we do not use any register across a call.
5453 __ CheckMap(object, temps.AcquireX(), from_map, &not_applicable, 5453 __ CheckMap(object, temps.AcquireX(), from_map, &not_applicable,
5454 DONT_DO_SMI_CHECK); 5454 DONT_DO_SMI_CHECK);
5455 } 5455 }
5456 DCHECK(object.is(x0)); 5456 DCHECK(object.is(x0));
5457 DCHECK(ToRegister(instr->context()).is(cp)); 5457 DCHECK(ToRegister(instr->context()).is(cp));
5458 PushSafepointRegistersScope scope(this); 5458 PushSafepointRegistersScope scope(this);
5459 __ Mov(x1, Operand(to_map)); 5459 __ Mov(x1, Operand(to_map));
5460 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; 5460 TransitionElementsKindStub stub(isolate(), from_kind, to_kind);
5461 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array);
5462 __ CallStub(&stub); 5461 __ CallStub(&stub);
5463 RecordSafepointWithRegisters( 5462 RecordSafepointWithRegisters(
5464 instr->pointer_map(), 0, Safepoint::kLazyDeopt); 5463 instr->pointer_map(), 0, Safepoint::kLazyDeopt);
5465 } 5464 }
5466 __ Bind(&not_applicable); 5465 __ Bind(&not_applicable);
5467 } 5466 }
5468 5467
5469 5468
5470 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 5469 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
5471 Register object = ToRegister(instr->object()); 5470 Register object = ToRegister(instr->object());
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
5741 // Index is equal to negated out of object property index plus 1. 5740 // Index is equal to negated out of object property index plus 1.
5742 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); 5741 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2));
5743 __ Ldr(result, FieldMemOperand(result, 5742 __ Ldr(result, FieldMemOperand(result,
5744 FixedArray::kHeaderSize - kPointerSize)); 5743 FixedArray::kHeaderSize - kPointerSize));
5745 __ Bind(deferred->exit()); 5744 __ Bind(deferred->exit());
5746 __ Bind(&done); 5745 __ Bind(&done);
5747 } 5746 }
5748 5747
5749 } // namespace internal 5748 } // namespace internal
5750 } // namespace v8 5749 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm/lithium-codegen-arm.cc ('k') | src/crankshaft/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698