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

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

Issue 12049088: Merged r13420 into 3.12 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.12
Patch Set: Created 7 years, 11 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 | src/version.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 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 3800 matching lines...) Expand 10 before | Expand all | Expand 10 after
3811 ElementsKind from_kind = from_map->elements_kind(); 3811 ElementsKind from_kind = from_map->elements_kind();
3812 ElementsKind to_kind = to_map->elements_kind(); 3812 ElementsKind to_kind = to_map->elements_kind();
3813 3813
3814 __ mov(ToRegister(instr->result()), object_reg); 3814 __ mov(ToRegister(instr->result()), object_reg);
3815 3815
3816 Label not_applicable; 3816 Label not_applicable;
3817 __ lw(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 3817 __ lw(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset));
3818 __ Branch(&not_applicable, ne, scratch, Operand(from_map)); 3818 __ Branch(&not_applicable, ne, scratch, Operand(from_map));
3819 3819
3820 __ li(new_map_reg, Operand(to_map)); 3820 __ li(new_map_reg, Operand(to_map));
3821 if (IsFastSmiElementsKind(from_kind) && IsFastObjectElementsKind(to_kind)) { 3821 if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
3822 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 3822 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
3823 // Write barrier. 3823 // Write barrier.
3824 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 3824 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
3825 scratch, kRAHasBeenSaved, kDontSaveFPRegs); 3825 scratch, kRAHasBeenSaved, kDontSaveFPRegs);
3826 } else if (IsFastSmiElementsKind(from_kind) && 3826 } else if (IsFastSmiElementsKind(from_kind) &&
3827 IsFastDoubleElementsKind(to_kind)) { 3827 IsFastDoubleElementsKind(to_kind)) {
3828 Register fixed_object_reg = ToRegister(instr->temp_reg()); 3828 Register fixed_object_reg = ToRegister(instr->temp_reg());
3829 ASSERT(fixed_object_reg.is(a2)); 3829 ASSERT(fixed_object_reg.is(a2));
3830 ASSERT(new_map_reg.is(a3)); 3830 ASSERT(new_map_reg.is(a3));
3831 __ mov(fixed_object_reg, object_reg); 3831 __ mov(fixed_object_reg, object_reg);
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
5265 __ Subu(scratch, result, scratch); 5265 __ Subu(scratch, result, scratch);
5266 __ lw(result, FieldMemOperand(scratch, 5266 __ lw(result, FieldMemOperand(scratch,
5267 FixedArray::kHeaderSize - kPointerSize)); 5267 FixedArray::kHeaderSize - kPointerSize));
5268 __ bind(&done); 5268 __ bind(&done);
5269 } 5269 }
5270 5270
5271 5271
5272 #undef __ 5272 #undef __
5273 5273
5274 } } // namespace v8::internal 5274 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698