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

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

Issue 12049087: Merged r13420, r13427 into 3.15 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.15
Patch Set: Created 7 years, 10 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 | « src/mips/codegen-mips.cc ('k') | 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 3998 matching lines...) Expand 10 before | Expand all | Expand 10 after
4009 ElementsKind from_kind = from_map->elements_kind(); 4009 ElementsKind from_kind = from_map->elements_kind();
4010 ElementsKind to_kind = to_map->elements_kind(); 4010 ElementsKind to_kind = to_map->elements_kind();
4011 4011
4012 __ mov(ToRegister(instr->result()), object_reg); 4012 __ mov(ToRegister(instr->result()), object_reg);
4013 4013
4014 Label not_applicable; 4014 Label not_applicable;
4015 __ lw(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4015 __ lw(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4016 __ Branch(&not_applicable, ne, scratch, Operand(from_map)); 4016 __ Branch(&not_applicable, ne, scratch, Operand(from_map));
4017 4017
4018 __ li(new_map_reg, Operand(to_map)); 4018 __ li(new_map_reg, Operand(to_map));
4019 if (IsFastSmiElementsKind(from_kind) && IsFastObjectElementsKind(to_kind)) { 4019 if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
4020 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4020 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4021 // Write barrier. 4021 // Write barrier.
4022 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4022 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4023 scratch, kRAHasBeenSaved, kDontSaveFPRegs); 4023 scratch, kRAHasBeenSaved, kDontSaveFPRegs);
4024 } else if (IsFastSmiElementsKind(from_kind) && 4024 } else if (IsFastSmiElementsKind(from_kind) &&
4025 IsFastDoubleElementsKind(to_kind)) { 4025 IsFastDoubleElementsKind(to_kind)) {
4026 Register fixed_object_reg = ToRegister(instr->temp()); 4026 Register fixed_object_reg = ToRegister(instr->temp());
4027 ASSERT(fixed_object_reg.is(a2)); 4027 ASSERT(fixed_object_reg.is(a2));
4028 ASSERT(new_map_reg.is(a3)); 4028 ASSERT(new_map_reg.is(a3));
4029 __ mov(fixed_object_reg, object_reg); 4029 __ mov(fixed_object_reg, object_reg);
(...skipping 1491 matching lines...) Expand 10 before | Expand all | Expand 10 after
5521 __ Subu(scratch, result, scratch); 5521 __ Subu(scratch, result, scratch);
5522 __ lw(result, FieldMemOperand(scratch, 5522 __ lw(result, FieldMemOperand(scratch,
5523 FixedArray::kHeaderSize - kPointerSize)); 5523 FixedArray::kHeaderSize - kPointerSize));
5524 __ bind(&done); 5524 __ bind(&done);
5525 } 5525 }
5526 5526
5527 5527
5528 #undef __ 5528 #undef __
5529 5529
5530 } } // namespace v8::internal 5530 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/version.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698