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 212623002: Merged r20033, r20138 into 3.24 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.24
Patch Set: Created 6 years, 9 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/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 4325 matching lines...) Expand 10 before | Expand all | Expand 10 after
4336 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4336 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4337 // Write barrier. 4337 // Write barrier.
4338 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4338 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4339 scratch, GetRAState(), kDontSaveFPRegs); 4339 scratch, GetRAState(), kDontSaveFPRegs);
4340 } else { 4340 } else {
4341 ASSERT(ToRegister(instr->context()).is(cp)); 4341 ASSERT(ToRegister(instr->context()).is(cp));
4342 PushSafepointRegistersScope scope( 4342 PushSafepointRegistersScope scope(
4343 this, Safepoint::kWithRegistersAndDoubles); 4343 this, Safepoint::kWithRegistersAndDoubles);
4344 __ mov(a0, object_reg); 4344 __ mov(a0, object_reg);
4345 __ li(a1, Operand(to_map)); 4345 __ li(a1, Operand(to_map));
4346 TransitionElementsKindStub stub(from_kind, to_kind); 4346 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4347 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array);
4347 __ CallStub(&stub); 4348 __ CallStub(&stub);
4348 RecordSafepointWithRegistersAndDoubles( 4349 RecordSafepointWithRegistersAndDoubles(
4349 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4350 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4350 } 4351 }
4351 __ bind(&not_applicable); 4352 __ bind(&not_applicable);
4352 } 4353 }
4353 4354
4354 4355
4355 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4356 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4356 Register object = ToRegister(instr->object()); 4357 Register object = ToRegister(instr->object());
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
5741 __ Subu(scratch, result, scratch); 5742 __ Subu(scratch, result, scratch);
5742 __ lw(result, FieldMemOperand(scratch, 5743 __ lw(result, FieldMemOperand(scratch,
5743 FixedArray::kHeaderSize - kPointerSize)); 5744 FixedArray::kHeaderSize - kPointerSize));
5744 __ bind(&done); 5745 __ bind(&done);
5745 } 5746 }
5746 5747
5747 5748
5748 #undef __ 5749 #undef __
5749 5750
5750 } } // namespace v8::internal 5751 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698