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

Side by Side Diff: src/crankshaft/s390/lithium-codegen-s390.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/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // 2 //
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 #include "src/crankshaft/s390/lithium-codegen-s390.h" 6 #include "src/crankshaft/s390/lithium-codegen-s390.h"
7 7
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 4400 matching lines...) Expand 10 before | Expand all | Expand 10 after
4411 __ mov(new_map_reg, Operand(to_map)); 4411 __ mov(new_map_reg, Operand(to_map));
4412 __ StoreP(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4412 __ StoreP(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4413 // Write barrier. 4413 // Write barrier.
4414 __ RecordWriteForMap(object_reg, new_map_reg, scratch, 4414 __ RecordWriteForMap(object_reg, new_map_reg, scratch,
4415 GetLinkRegisterState(), kDontSaveFPRegs); 4415 GetLinkRegisterState(), kDontSaveFPRegs);
4416 } else { 4416 } else {
4417 DCHECK(ToRegister(instr->context()).is(cp)); 4417 DCHECK(ToRegister(instr->context()).is(cp));
4418 DCHECK(object_reg.is(r2)); 4418 DCHECK(object_reg.is(r2));
4419 PushSafepointRegistersScope scope(this); 4419 PushSafepointRegistersScope scope(this);
4420 __ Move(r3, to_map); 4420 __ Move(r3, to_map);
4421 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; 4421 TransitionElementsKindStub stub(isolate(), from_kind, to_kind);
4422 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array);
4423 __ CallStub(&stub); 4422 __ CallStub(&stub);
4424 RecordSafepointWithRegisters(instr->pointer_map(), 0, 4423 RecordSafepointWithRegisters(instr->pointer_map(), 0,
4425 Safepoint::kLazyDeopt); 4424 Safepoint::kLazyDeopt);
4426 } 4425 }
4427 __ bind(&not_applicable); 4426 __ bind(&not_applicable);
4428 } 4427 }
4429 4428
4430 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4429 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4431 Register object = ToRegister(instr->object()); 4430 Register object = ToRegister(instr->object());
4432 Register temp1 = ToRegister(instr->temp1()); 4431 Register temp1 = ToRegister(instr->temp1());
(...skipping 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after
5695 __ LoadP(result, 5694 __ LoadP(result,
5696 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize)); 5695 FieldMemOperand(scratch, FixedArray::kHeaderSize - kPointerSize));
5697 __ bind(deferred->exit()); 5696 __ bind(deferred->exit());
5698 __ bind(&done); 5697 __ bind(&done);
5699 } 5698 }
5700 5699
5701 #undef __ 5700 #undef __
5702 5701
5703 } // namespace internal 5702 } // namespace internal
5704 } // namespace v8 5703 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-codegen-ppc.cc ('k') | src/crankshaft/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698