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

Side by Side Diff: src/arm/lithium-codegen-arm.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 | « no previous file | src/ia32/lithium-codegen-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 5062 matching lines...) Expand 10 before | Expand all | Expand 10 after
5073 } 5073 }
5074 5074
5075 // Copy elements backing store content. 5075 // Copy elements backing store content.
5076 int elements_length = has_elements ? elements->length() : 0; 5076 int elements_length = has_elements ? elements->length() : 0;
5077 if (elements->IsFixedDoubleArray()) { 5077 if (elements->IsFixedDoubleArray()) {
5078 Handle<FixedDoubleArray> double_array = 5078 Handle<FixedDoubleArray> double_array =
5079 Handle<FixedDoubleArray>::cast(elements); 5079 Handle<FixedDoubleArray>::cast(elements);
5080 for (int i = 0; i < elements_length; i++) { 5080 for (int i = 0; i < elements_length; i++) {
5081 int64_t value = double_array->get_representation(i); 5081 int64_t value = double_array->get_representation(i);
5082 // We only support little endian mode... 5082 // We only support little endian mode...
5083 int32_t value_low = value & 0xFFFFFFFF; 5083 int32_t value_low = static_cast<int32_t>(value & 0xFFFFFFFF);
5084 int32_t value_high = value >> 32; 5084 int32_t value_high = static_cast<int32_t>(value >> 32);
5085 int total_offset = 5085 int total_offset =
5086 elements_offset + FixedDoubleArray::OffsetOfElementAt(i); 5086 elements_offset + FixedDoubleArray::OffsetOfElementAt(i);
5087 __ mov(r2, Operand(value_low)); 5087 __ mov(r2, Operand(value_low));
5088 __ str(r2, FieldMemOperand(result, total_offset)); 5088 __ str(r2, FieldMemOperand(result, total_offset));
5089 __ mov(r2, Operand(value_high)); 5089 __ mov(r2, Operand(value_high));
5090 __ str(r2, FieldMemOperand(result, total_offset + 4)); 5090 __ str(r2, FieldMemOperand(result, total_offset + 4));
5091 } 5091 }
5092 } else if (elements->IsFixedArray()) { 5092 } else if (elements->IsFixedArray()) {
5093 Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements); 5093 Handle<FixedArray> fast_elements = Handle<FixedArray>::cast(elements);
5094 for (int i = 0; i < elements_length; i++) { 5094 for (int i = 0; i < elements_length; i++) {
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
5616 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); 5616 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize));
5617 __ ldr(result, FieldMemOperand(scratch, 5617 __ ldr(result, FieldMemOperand(scratch,
5618 FixedArray::kHeaderSize - kPointerSize)); 5618 FixedArray::kHeaderSize - kPointerSize));
5619 __ bind(&done); 5619 __ bind(&done);
5620 } 5620 }
5621 5621
5622 5622
5623 #undef __ 5623 #undef __
5624 5624
5625 } } // namespace v8::internal 5625 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698