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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 23110002: MIPS: Store doubles before calling into the elements transition stub (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | 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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 4387 matching lines...) Expand 10 before | Expand all | Expand 10 after
4398 __ Branch(&not_applicable, ne, scratch, Operand(from_map)); 4398 __ Branch(&not_applicable, ne, scratch, Operand(from_map));
4399 4399
4400 if (IsSimpleMapChangeTransition(from_kind, to_kind)) { 4400 if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
4401 Register new_map_reg = ToRegister(instr->new_map_temp()); 4401 Register new_map_reg = ToRegister(instr->new_map_temp());
4402 __ li(new_map_reg, Operand(to_map)); 4402 __ li(new_map_reg, Operand(to_map));
4403 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4403 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4404 // Write barrier. 4404 // Write barrier.
4405 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4405 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4406 scratch, GetRAState(), kDontSaveFPRegs); 4406 scratch, GetRAState(), kDontSaveFPRegs);
4407 } else { 4407 } else {
4408 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 4408 PushSafepointRegistersScope scope(
4409 this, Safepoint::kWithRegistersAndDoubles);
4409 __ mov(a0, object_reg); 4410 __ mov(a0, object_reg);
4410 __ li(a1, Operand(to_map)); 4411 __ li(a1, Operand(to_map));
4411 TransitionElementsKindStub stub(from_kind, to_kind); 4412 TransitionElementsKindStub stub(from_kind, to_kind);
4412 __ CallStub(&stub); 4413 __ CallStub(&stub);
4413 RecordSafepointWithRegisters( 4414 RecordSafepointWithRegistersAndDoubles(
4414 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4415 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4415 } 4416 }
4416 __ bind(&not_applicable); 4417 __ bind(&not_applicable);
4417 } 4418 }
4418 4419
4419 4420
4420 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4421 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4421 Register object = ToRegister(instr->object()); 4422 Register object = ToRegister(instr->object());
4422 Register temp = ToRegister(instr->temp()); 4423 Register temp = ToRegister(instr->temp());
4423 Label fail; 4424 Label fail;
(...skipping 1373 matching lines...) Expand 10 before | Expand all | Expand 10 after
5797 __ Subu(scratch, result, scratch); 5798 __ Subu(scratch, result, scratch);
5798 __ lw(result, FieldMemOperand(scratch, 5799 __ lw(result, FieldMemOperand(scratch,
5799 FixedArray::kHeaderSize - kPointerSize)); 5800 FixedArray::kHeaderSize - kPointerSize));
5800 __ bind(&done); 5801 __ bind(&done);
5801 } 5802 }
5802 5803
5803 5804
5804 #undef __ 5805 #undef __
5805 5806
5806 } } // namespace v8::internal 5807 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698