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

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

Issue 10105026: Version 3.10.3 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 8 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/full-codegen-arm.cc ('k') | src/array.js » ('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 4641 matching lines...) Expand 10 before | Expand all | Expand 10 after
4652 int32_t value_low = value & 0xFFFFFFFF; 4652 int32_t value_low = value & 0xFFFFFFFF;
4653 int32_t value_high = value >> 32; 4653 int32_t value_high = value >> 32;
4654 int total_offset = 4654 int total_offset =
4655 elements_offset + FixedDoubleArray::OffsetOfElementAt(i); 4655 elements_offset + FixedDoubleArray::OffsetOfElementAt(i);
4656 __ mov(r2, Operand(value_low)); 4656 __ mov(r2, Operand(value_low));
4657 __ str(r2, FieldMemOperand(result, total_offset)); 4657 __ str(r2, FieldMemOperand(result, total_offset));
4658 __ mov(r2, Operand(value_high)); 4658 __ mov(r2, Operand(value_high));
4659 __ str(r2, FieldMemOperand(result, total_offset + 4)); 4659 __ str(r2, FieldMemOperand(result, total_offset + 4));
4660 } 4660 }
4661 } else if (elements->IsFixedArray()) { 4661 } else if (elements->IsFixedArray()) {
4662 Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements);
4662 for (int i = 0; i < elements_length; i++) { 4663 for (int i = 0; i < elements_length; i++) {
4663 int total_offset = elements_offset + FixedArray::OffsetOfElementAt(i); 4664 int total_offset = elements_offset + FixedArray::OffsetOfElementAt(i);
4664 Handle<Object> value = JSObject::GetElement(object, i); 4665 Handle<Object> value(fast_elements->get(i));
4665 if (value->IsJSObject()) { 4666 if (value->IsJSObject()) {
4666 Handle<JSObject> value_object = Handle<JSObject>::cast(value); 4667 Handle<JSObject> value_object = Handle<JSObject>::cast(value);
4667 __ add(r2, result, Operand(*offset)); 4668 __ add(r2, result, Operand(*offset));
4668 __ str(r2, FieldMemOperand(result, total_offset)); 4669 __ str(r2, FieldMemOperand(result, total_offset));
4669 __ LoadHeapObject(source, value_object); 4670 __ LoadHeapObject(source, value_object);
4670 EmitDeepCopy(value_object, result, source, offset); 4671 EmitDeepCopy(value_object, result, source, offset);
4671 } else if (value->IsHeapObject()) { 4672 } else if (value->IsHeapObject()) {
4672 __ LoadHeapObject(r2, Handle<HeapObject>::cast(value)); 4673 __ LoadHeapObject(r2, Handle<HeapObject>::cast(value));
4673 __ str(r2, FieldMemOperand(result, total_offset)); 4674 __ str(r2, FieldMemOperand(result, total_offset));
4674 } else { 4675 } else {
(...skipping 480 matching lines...) Expand 10 before | Expand all | Expand 10 after
5155 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5156 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5156 __ ldr(result, FieldMemOperand(scratch, 5157 __ ldr(result, FieldMemOperand(scratch,
5157 FixedArray::kHeaderSize - kPointerSize)); 5158 FixedArray::kHeaderSize - kPointerSize));
5158 __ bind(&done); 5159 __ bind(&done);
5159 } 5160 }
5160 5161
5161 5162
5162 #undef __ 5163 #undef __
5163 5164
5164 } } // namespace v8::internal 5165 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/full-codegen-arm.cc ('k') | src/array.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698