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

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

Issue 212593003: Merged r20033, r20138 into 3.23 branch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/3.23
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. 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 4473 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4484 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4485 // Write barrier. 4485 // Write barrier.
4486 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4486 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4487 scratch, GetRAState(), kDontSaveFPRegs); 4487 scratch, GetRAState(), kDontSaveFPRegs);
4488 } else { 4488 } else {
4489 ASSERT(ToRegister(instr->context()).is(cp)); 4489 ASSERT(ToRegister(instr->context()).is(cp));
4490 PushSafepointRegistersScope scope( 4490 PushSafepointRegistersScope scope(
4491 this, Safepoint::kWithRegistersAndDoubles); 4491 this, Safepoint::kWithRegistersAndDoubles);
4492 __ mov(a0, object_reg); 4492 __ mov(a0, object_reg);
4493 __ li(a1, Operand(to_map)); 4493 __ li(a1, Operand(to_map));
4494 TransitionElementsKindStub stub(from_kind, to_kind); 4494 bool is_js_array = from_map->instance_type() == JS_ARRAY_TYPE;
4495 TransitionElementsKindStub stub(from_kind, to_kind, is_js_array);
4495 __ CallStub(&stub); 4496 __ CallStub(&stub);
4496 RecordSafepointWithRegistersAndDoubles( 4497 RecordSafepointWithRegistersAndDoubles(
4497 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4498 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4498 } 4499 }
4499 __ bind(&not_applicable); 4500 __ bind(&not_applicable);
4500 } 4501 }
4501 4502
4502 4503
4503 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4504 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4504 Register object = ToRegister(instr->object()); 4505 Register object = ToRegister(instr->object());
(...skipping 1391 matching lines...) Expand 10 before | Expand all | Expand 10 after
5896 __ Subu(scratch, result, scratch); 5897 __ Subu(scratch, result, scratch);
5897 __ lw(result, FieldMemOperand(scratch, 5898 __ lw(result, FieldMemOperand(scratch,
5898 FixedArray::kHeaderSize - kPointerSize)); 5899 FixedArray::kHeaderSize - kPointerSize));
5899 __ bind(&done); 5900 __ bind(&done);
5900 } 5901 }
5901 5902
5902 5903
5903 #undef __ 5904 #undef __
5904 5905
5905 } } // namespace v8::internal 5906 } } // 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