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

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

Issue 10907029: Fix VS2005 build. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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-codegen-arm.cc ('k') | src/mips/lithium-codegen-mips.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 4966 matching lines...) Expand 10 before | Expand all | Expand 10 after
4977 __ mov(FieldOperand(result, elements_offset + i), ecx); 4977 __ mov(FieldOperand(result, elements_offset + i), ecx);
4978 } 4978 }
4979 4979
4980 // Copy elements backing store content. 4980 // Copy elements backing store content.
4981 int elements_length = elements->length(); 4981 int elements_length = elements->length();
4982 if (elements->IsFixedDoubleArray()) { 4982 if (elements->IsFixedDoubleArray()) {
4983 Handle<FixedDoubleArray> double_array = 4983 Handle<FixedDoubleArray> double_array =
4984 Handle<FixedDoubleArray>::cast(elements); 4984 Handle<FixedDoubleArray>::cast(elements);
4985 for (int i = 0; i < elements_length; i++) { 4985 for (int i = 0; i < elements_length; i++) {
4986 int64_t value = double_array->get_representation(i); 4986 int64_t value = double_array->get_representation(i);
4987 int32_t value_low = value & 0xFFFFFFFF; 4987 int32_t value_low = static_cast<int32_t>(value & 0xFFFFFFFF);
4988 int32_t value_high = value >> 32; 4988 int32_t value_high = static_cast<int32_t>(value >> 32);
4989 int total_offset = 4989 int total_offset =
4990 elements_offset + FixedDoubleArray::OffsetOfElementAt(i); 4990 elements_offset + FixedDoubleArray::OffsetOfElementAt(i);
4991 __ mov(FieldOperand(result, total_offset), Immediate(value_low)); 4991 __ mov(FieldOperand(result, total_offset), Immediate(value_low));
4992 __ mov(FieldOperand(result, total_offset + 4), Immediate(value_high)); 4992 __ mov(FieldOperand(result, total_offset + 4), Immediate(value_high));
4993 } 4993 }
4994 } else if (elements->IsFixedArray()) { 4994 } else if (elements->IsFixedArray()) {
4995 Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements); 4995 Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements);
4996 for (int i = 0; i < elements_length; i++) { 4996 for (int i = 0; i < elements_length; i++) {
4997 int total_offset = elements_offset + FixedArray::OffsetOfElementAt(i); 4997 int total_offset = elements_offset + FixedArray::OffsetOfElementAt(i);
4998 Handle<Object> value(fast_elements->get(i)); 4998 Handle<Object> value(fast_elements->get(i));
(...skipping 512 matching lines...) Expand 10 before | Expand all | Expand 10 after
5511 FixedArray::kHeaderSize - kPointerSize)); 5511 FixedArray::kHeaderSize - kPointerSize));
5512 __ bind(&done); 5512 __ bind(&done);
5513 } 5513 }
5514 5514
5515 5515
5516 #undef __ 5516 #undef __
5517 5517
5518 } } // namespace v8::internal 5518 } } // namespace v8::internal
5519 5519
5520 #endif // V8_TARGET_ARCH_IA32 5520 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/mips/lithium-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698