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

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

Issue 212623002: Merged r20033, r20138 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 8 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/code-stubs.h » ('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 4390 matching lines...) Expand 10 before | Expand all | Expand 10 after
4401 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4401 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4402 // Write barrier. 4402 // Write barrier.
4403 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4403 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4404 scratch, GetLinkRegisterState(), kDontSaveFPRegs); 4404 scratch, GetLinkRegisterState(), kDontSaveFPRegs);
4405 } else { 4405 } else {
4406 ASSERT(ToRegister(instr->context()).is(cp)); 4406 ASSERT(ToRegister(instr->context()).is(cp));
4407 PushSafepointRegistersScope scope( 4407 PushSafepointRegistersScope scope(
4408 this, Safepoint::kWithRegistersAndDoubles); 4408 this, Safepoint::kWithRegistersAndDoubles);
4409 __ Move(r0, object_reg); 4409 __ Move(r0, object_reg);
4410 __ Move(r1, to_map); 4410 __ Move(r1, to_map);
4411 TransitionElementsKindStub stub(from_kind, to_kind); 4411 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4412 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array);
4412 __ CallStub(&stub); 4413 __ CallStub(&stub);
4413 RecordSafepointWithRegistersAndDoubles( 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());
(...skipping 1327 matching lines...) Expand 10 before | Expand all | Expand 10 after
5749 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5750 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5750 __ ldr(result, FieldMemOperand(scratch, 5751 __ ldr(result, FieldMemOperand(scratch,
5751 FixedArray::kHeaderSize - kPointerSize)); 5752 FixedArray::kHeaderSize - kPointerSize));
5752 __ bind(&done); 5753 __ bind(&done);
5753 } 5754 }
5754 5755
5755 5756
5756 #undef __ 5757 #undef __
5757 5758
5758 } } // namespace v8::internal 5759 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/code-stubs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698