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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/ia32/full-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.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 4496 matching lines...) Expand 10 before | Expand all | Expand 10 after
4507 for (int i = 0; i < elements_length; i++) { 4507 for (int i = 0; i < elements_length; i++) {
4508 int64_t value = double_array->get_representation(i); 4508 int64_t value = double_array->get_representation(i);
4509 int32_t value_low = value & 0xFFFFFFFF; 4509 int32_t value_low = value & 0xFFFFFFFF;
4510 int32_t value_high = value >> 32; 4510 int32_t value_high = value >> 32;
4511 int total_offset = 4511 int total_offset =
4512 elements_offset + FixedDoubleArray::OffsetOfElementAt(i); 4512 elements_offset + FixedDoubleArray::OffsetOfElementAt(i);
4513 __ mov(FieldOperand(result, total_offset), Immediate(value_low)); 4513 __ mov(FieldOperand(result, total_offset), Immediate(value_low));
4514 __ mov(FieldOperand(result, total_offset + 4), Immediate(value_high)); 4514 __ mov(FieldOperand(result, total_offset + 4), Immediate(value_high));
4515 } 4515 }
4516 } else if (elements->IsFixedArray()) { 4516 } else if (elements->IsFixedArray()) {
4517 Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements);
4517 for (int i = 0; i < elements_length; i++) { 4518 for (int i = 0; i < elements_length; i++) {
4518 int total_offset = elements_offset + FixedArray::OffsetOfElementAt(i); 4519 int total_offset = elements_offset + FixedArray::OffsetOfElementAt(i);
4519 Handle<Object> value = JSObject::GetElement(object, i); 4520 Handle<Object> value(fast_elements->get(i));
4520 if (value->IsJSObject()) { 4521 if (value->IsJSObject()) {
4521 Handle<JSObject> value_object = Handle<JSObject>::cast(value); 4522 Handle<JSObject> value_object = Handle<JSObject>::cast(value);
4522 __ lea(ecx, Operand(result, *offset)); 4523 __ lea(ecx, Operand(result, *offset));
4523 __ mov(FieldOperand(result, total_offset), ecx); 4524 __ mov(FieldOperand(result, total_offset), ecx);
4524 __ LoadHeapObject(source, value_object); 4525 __ LoadHeapObject(source, value_object);
4525 EmitDeepCopy(value_object, result, source, offset); 4526 EmitDeepCopy(value_object, result, source, offset);
4526 } else if (value->IsHeapObject()) { 4527 } else if (value->IsHeapObject()) {
4527 __ LoadHeapObject(ecx, Handle<HeapObject>::cast(value)); 4528 __ LoadHeapObject(ecx, Handle<HeapObject>::cast(value));
4528 __ mov(FieldOperand(result, total_offset), ecx); 4529 __ mov(FieldOperand(result, total_offset), ecx);
4529 } else { 4530 } else {
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
5007 FixedArray::kHeaderSize - kPointerSize)); 5008 FixedArray::kHeaderSize - kPointerSize));
5008 __ bind(&done); 5009 __ bind(&done);
5009 } 5010 }
5010 5011
5011 5012
5012 #undef __ 5013 #undef __
5013 5014
5014 } } // namespace v8::internal 5015 } } // namespace v8::internal
5015 5016
5016 #endif // V8_TARGET_ARCH_IA32 5017 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/ia32/stub-cache-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698