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

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

Issue 19956002: Support double allocations when folding allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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/hydrogen-instructions.h » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')
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 4148 matching lines...) Expand 10 before | Expand all | Expand 10 after
4159 4159
4160 4160
4161 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { 4161 void LCodeGen::DoCallRuntime(LCallRuntime* instr) {
4162 CallRuntime(instr->function(), instr->arity(), instr); 4162 CallRuntime(instr->function(), instr->arity(), instr);
4163 } 4163 }
4164 4164
4165 4165
4166 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) { 4166 void LCodeGen::DoInnerAllocatedObject(LInnerAllocatedObject* instr) {
4167 Register result = ToRegister(instr->result()); 4167 Register result = ToRegister(instr->result());
4168 Register base = ToRegister(instr->base_object()); 4168 Register base = ToRegister(instr->base_object());
4169 int offset = instr->offset();
4170 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
4171 ASSERT(kPointerAlignment * 2 == kDoubleAlignment);
4172 Label aligned;
4173 Register scratch = scratch0();
4174 __ and_(scratch, result, Operand(kDoubleAlignmentMask), SetCC);
4175 __ b(eq, &aligned);
4176 offset += kDoubleSize / 2;
4177 __ bind(&aligned);
4178 }
4169 __ add(result, base, Operand(instr->offset())); 4179 __ add(result, base, Operand(instr->offset()));
4170 } 4180 }
4171 4181
4172 4182
4173 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { 4183 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) {
4174 Representation representation = instr->representation(); 4184 Representation representation = instr->representation();
4175 4185
4176 Register object = ToRegister(instr->object()); 4186 Register object = ToRegister(instr->object());
4177 Register scratch = scratch0(); 4187 Register scratch = scratch0();
4178 4188
(...skipping 1642 matching lines...) Expand 10 before | Expand all | Expand 10 after
5821 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5831 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5822 __ ldr(result, FieldMemOperand(scratch, 5832 __ ldr(result, FieldMemOperand(scratch,
5823 FixedArray::kHeaderSize - kPointerSize)); 5833 FixedArray::kHeaderSize - kPointerSize));
5824 __ bind(&done); 5834 __ bind(&done);
5825 } 5835 }
5826 5836
5827 5837
5828 #undef __ 5838 #undef __
5829 5839
5830 } } // namespace v8::internal 5840 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/hydrogen-instructions.h » ('j') | src/ia32/lithium-codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698