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

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

Issue 18034024: Remove the compiled_transitions flag and cleanup the unused code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE Created 7 years, 4 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/ic-mips.cc ('k') | src/mips/lithium-mips.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 4437 matching lines...) Expand 10 before | Expand all | Expand 10 after
4448 __ lw(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4448 __ lw(scratch, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4449 __ Branch(&not_applicable, ne, scratch, Operand(from_map)); 4449 __ Branch(&not_applicable, ne, scratch, Operand(from_map));
4450 4450
4451 if (IsSimpleMapChangeTransition(from_kind, to_kind)) { 4451 if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
4452 Register new_map_reg = ToRegister(instr->new_map_temp()); 4452 Register new_map_reg = ToRegister(instr->new_map_temp());
4453 __ li(new_map_reg, Operand(to_map)); 4453 __ li(new_map_reg, Operand(to_map));
4454 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4454 __ sw(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4455 // Write barrier. 4455 // Write barrier.
4456 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4456 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4457 scratch, GetRAState(), kDontSaveFPRegs); 4457 scratch, GetRAState(), kDontSaveFPRegs);
4458 } else if (FLAG_compiled_transitions) { 4458 } else {
4459 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 4459 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
4460 __ mov(a0, object_reg); 4460 __ mov(a0, object_reg);
4461 __ li(a1, Operand(to_map)); 4461 __ li(a1, Operand(to_map));
4462 TransitionElementsKindStub stub(from_kind, to_kind); 4462 TransitionElementsKindStub stub(from_kind, to_kind);
4463 __ CallStub(&stub); 4463 __ CallStub(&stub);
4464 RecordSafepointWithRegisters( 4464 RecordSafepointWithRegisters(
4465 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4465 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4466 } else if (IsFastSmiElementsKind(from_kind) &&
4467 IsFastDoubleElementsKind(to_kind)) {
4468 Register fixed_object_reg = ToRegister(instr->temp());
4469 ASSERT(fixed_object_reg.is(a2));
4470 Register new_map_reg = ToRegister(instr->new_map_temp());
4471 ASSERT(new_map_reg.is(a3));
4472 __ li(new_map_reg, Operand(to_map));
4473 __ mov(fixed_object_reg, object_reg);
4474 CallCode(isolate()->builtins()->TransitionElementsSmiToDouble(),
4475 RelocInfo::CODE_TARGET, instr);
4476 } else if (IsFastDoubleElementsKind(from_kind) &&
4477 IsFastObjectElementsKind(to_kind)) {
4478 Register fixed_object_reg = ToRegister(instr->temp());
4479 ASSERT(fixed_object_reg.is(a2));
4480 Register new_map_reg = ToRegister(instr->new_map_temp());
4481 ASSERT(new_map_reg.is(a3));
4482 __ li(new_map_reg, Operand(to_map));
4483 __ mov(fixed_object_reg, object_reg);
4484 CallCode(isolate()->builtins()->TransitionElementsDoubleToObject(),
4485 RelocInfo::CODE_TARGET, instr);
4486 } else {
4487 UNREACHABLE();
4488 } 4466 }
4489 __ bind(&not_applicable); 4467 __ bind(&not_applicable);
4490 } 4468 }
4491 4469
4492 4470
4493 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4471 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4494 Register object = ToRegister(instr->object()); 4472 Register object = ToRegister(instr->object());
4495 Register temp = ToRegister(instr->temp()); 4473 Register temp = ToRegister(instr->temp());
4496 Label fail; 4474 Label fail;
4497 __ TestJSArrayForAllocationMemento(object, temp, ne, &fail); 4475 __ TestJSArrayForAllocationMemento(object, temp, ne, &fail);
(...skipping 1360 matching lines...) Expand 10 before | Expand all | Expand 10 after
5858 __ Subu(scratch, result, scratch); 5836 __ Subu(scratch, result, scratch);
5859 __ lw(result, FieldMemOperand(scratch, 5837 __ lw(result, FieldMemOperand(scratch,
5860 FixedArray::kHeaderSize - kPointerSize)); 5838 FixedArray::kHeaderSize - kPointerSize));
5861 __ bind(&done); 5839 __ bind(&done);
5862 } 5840 }
5863 5841
5864 5842
5865 #undef __ 5843 #undef __
5866 5844
5867 } } // namespace v8::internal 5845 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/ic-mips.cc ('k') | src/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698