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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.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/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.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 #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 4278 matching lines...) Expand 10 before | Expand all | Expand 10 after
4289 __ Move(new_map_reg, to_map, RelocInfo::EMBEDDED_OBJECT); 4289 __ Move(new_map_reg, to_map, RelocInfo::EMBEDDED_OBJECT);
4290 __ movp(FieldOperand(object_reg, HeapObject::kMapOffset), new_map_reg); 4290 __ movp(FieldOperand(object_reg, HeapObject::kMapOffset), new_map_reg);
4291 // Write barrier. 4291 // Write barrier.
4292 __ RecordWriteForMap(object_reg, new_map_reg, ToRegister(instr->temp()), 4292 __ RecordWriteForMap(object_reg, new_map_reg, ToRegister(instr->temp()),
4293 kDontSaveFPRegs); 4293 kDontSaveFPRegs);
4294 } else { 4294 } else {
4295 DCHECK(object_reg.is(rax)); 4295 DCHECK(object_reg.is(rax));
4296 DCHECK(ToRegister(instr->context()).is(rsi)); 4296 DCHECK(ToRegister(instr->context()).is(rsi));
4297 PushSafepointRegistersScope scope(this); 4297 PushSafepointRegistersScope scope(this);
4298 __ Move(rbx, to_map); 4298 __ Move(rbx, to_map);
4299 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE; 4299 TransitionElementsKindStub stub(isolate(), from_kind, to_kind);
4300 TransitionElementsKindStub stub(isolate(), from_kind, to_kind, is_js_array);
4301 __ CallStub(&stub); 4300 __ CallStub(&stub);
4302 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0); 4301 RecordSafepointWithLazyDeopt(instr, RECORD_SAFEPOINT_WITH_REGISTERS, 0);
4303 } 4302 }
4304 __ bind(&not_applicable); 4303 __ bind(&not_applicable);
4305 } 4304 }
4306 4305
4307 4306
4308 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4307 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4309 Register object = ToRegister(instr->object()); 4308 Register object = ToRegister(instr->object());
4310 Register temp = ToRegister(instr->temp()); 4309 Register temp = ToRegister(instr->temp());
(...skipping 1283 matching lines...) Expand 10 before | Expand all | Expand 10 after
5594 __ bind(deferred->exit()); 5593 __ bind(deferred->exit());
5595 __ bind(&done); 5594 __ bind(&done);
5596 } 5595 }
5597 5596
5598 #undef __ 5597 #undef __
5599 5598
5600 } // namespace internal 5599 } // namespace internal
5601 } // namespace v8 5600 } // namespace v8
5602 5601
5603 #endif // V8_TARGET_ARCH_X64 5602 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/s390/lithium-codegen-s390.cc ('k') | src/crankshaft/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698