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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/builtins.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 4489 matching lines...) Expand 10 before | Expand all | Expand 10 after
4500 __ cmp(scratch, Operand(from_map)); 4500 __ cmp(scratch, Operand(from_map));
4501 __ b(ne, &not_applicable); 4501 __ b(ne, &not_applicable);
4502 4502
4503 if (IsSimpleMapChangeTransition(from_kind, to_kind)) { 4503 if (IsSimpleMapChangeTransition(from_kind, to_kind)) {
4504 Register new_map_reg = ToRegister(instr->new_map_temp()); 4504 Register new_map_reg = ToRegister(instr->new_map_temp());
4505 __ mov(new_map_reg, Operand(to_map)); 4505 __ mov(new_map_reg, Operand(to_map));
4506 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset)); 4506 __ str(new_map_reg, FieldMemOperand(object_reg, HeapObject::kMapOffset));
4507 // Write barrier. 4507 // Write barrier.
4508 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg, 4508 __ RecordWriteField(object_reg, HeapObject::kMapOffset, new_map_reg,
4509 scratch, GetLinkRegisterState(), kDontSaveFPRegs); 4509 scratch, GetLinkRegisterState(), kDontSaveFPRegs);
4510 } else if (FLAG_compiled_transitions) { 4510 } else {
4511 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters); 4511 PushSafepointRegistersScope scope(this, Safepoint::kWithRegisters);
4512 __ Move(r0, object_reg); 4512 __ Move(r0, object_reg);
4513 __ Move(r1, to_map); 4513 __ Move(r1, to_map);
4514 TransitionElementsKindStub stub(from_kind, to_kind); 4514 TransitionElementsKindStub stub(from_kind, to_kind);
4515 __ CallStub(&stub); 4515 __ CallStub(&stub);
4516 RecordSafepointWithRegisters( 4516 RecordSafepointWithRegisters(
4517 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt); 4517 instr->pointer_map(), 0, Safepoint::kNoLazyDeopt);
4518 } else if (IsFastSmiElementsKind(from_kind) &&
4519 IsFastDoubleElementsKind(to_kind)) {
4520 Register fixed_object_reg = ToRegister(instr->temp());
4521 ASSERT(fixed_object_reg.is(r2));
4522 Register new_map_reg = ToRegister(instr->new_map_temp());
4523 ASSERT(new_map_reg.is(r3));
4524 __ mov(new_map_reg, Operand(to_map));
4525 __ mov(fixed_object_reg, object_reg);
4526 CallCode(isolate()->builtins()->TransitionElementsSmiToDouble(),
4527 RelocInfo::CODE_TARGET, instr);
4528 } else if (IsFastDoubleElementsKind(from_kind) &&
4529 IsFastObjectElementsKind(to_kind)) {
4530 Register fixed_object_reg = ToRegister(instr->temp());
4531 ASSERT(fixed_object_reg.is(r2));
4532 Register new_map_reg = ToRegister(instr->new_map_temp());
4533 ASSERT(new_map_reg.is(r3));
4534 __ mov(new_map_reg, Operand(to_map));
4535 __ mov(fixed_object_reg, object_reg);
4536 CallCode(isolate()->builtins()->TransitionElementsDoubleToObject(),
4537 RelocInfo::CODE_TARGET, instr);
4538 } else {
4539 UNREACHABLE();
4540 } 4518 }
4541 __ bind(&not_applicable); 4519 __ bind(&not_applicable);
4542 } 4520 }
4543 4521
4544 4522
4545 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) { 4523 void LCodeGen::DoTrapAllocationMemento(LTrapAllocationMemento* instr) {
4546 Register object = ToRegister(instr->object()); 4524 Register object = ToRegister(instr->object());
4547 Register temp = ToRegister(instr->temp()); 4525 Register temp = ToRegister(instr->temp());
4548 __ TestJSArrayForAllocationMemento(object, temp); 4526 __ TestJSArrayForAllocationMemento(object, temp);
4549 DeoptimizeIf(eq, instr->environment()); 4527 DeoptimizeIf(eq, instr->environment());
(...skipping 1291 matching lines...) Expand 10 before | Expand all | Expand 10 after
5841 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5819 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5842 __ ldr(result, FieldMemOperand(scratch, 5820 __ ldr(result, FieldMemOperand(scratch,
5843 FixedArray::kHeaderSize - kPointerSize)); 5821 FixedArray::kHeaderSize - kPointerSize));
5844 __ bind(&done); 5822 __ bind(&done);
5845 } 5823 }
5846 5824
5847 5825
5848 #undef __ 5826 #undef __
5849 5827
5850 } } // namespace v8::internal 5828 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698