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

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

Issue 2226003: ARM: Add Ldrd/Strd to the macro assembler... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 7 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/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 917 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 __ mov(r1, Operand(Smi::FromInt(0))); // Map (0) - force slow check. 928 __ mov(r1, Operand(Smi::FromInt(0))); // Map (0) - force slow check.
929 __ Push(r1, r0); 929 __ Push(r1, r0);
930 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset)); 930 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset));
931 __ mov(r1, Operand(r1, LSL, kSmiTagSize)); 931 __ mov(r1, Operand(r1, LSL, kSmiTagSize));
932 __ mov(r0, Operand(Smi::FromInt(0))); 932 __ mov(r0, Operand(Smi::FromInt(0)));
933 __ Push(r1, r0); // Fixed array length (as smi) and initial index. 933 __ Push(r1, r0); // Fixed array length (as smi) and initial index.
934 934
935 // Generate code for doing the condition check. 935 // Generate code for doing the condition check.
936 __ bind(&loop); 936 __ bind(&loop);
937 // Load the current count to r0, load the length to r1. 937 // Load the current count to r0, load the length to r1.
938 __ ldrd(r0, r1, MemOperand(sp, 0 * kPointerSize)); 938 __ Ldrd(r0, r1, MemOperand(sp, 0 * kPointerSize));
939 __ cmp(r0, r1); // Compare to the array length. 939 __ cmp(r0, r1); // Compare to the array length.
940 __ b(hs, loop_statement.break_target()); 940 __ b(hs, loop_statement.break_target());
941 941
942 // Get the current entry of the array into register r3. 942 // Get the current entry of the array into register r3.
943 __ ldr(r2, MemOperand(sp, 2 * kPointerSize)); 943 __ ldr(r2, MemOperand(sp, 2 * kPointerSize));
944 __ add(r2, r2, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 944 __ add(r2, r2, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
945 __ ldr(r3, MemOperand(r2, r0, LSL, kPointerSizeLog2 - kSmiTagSize)); 945 __ ldr(r3, MemOperand(r2, r0, LSL, kPointerSizeLog2 - kSmiTagSize));
946 946
947 // Get the expected map from the stack or a zero map in the 947 // Get the expected map from the stack or a zero map in the
948 // permanent slow case into register r2. 948 // permanent slow case into register r2.
(...skipping 2185 matching lines...) Expand 10 before | Expand all | Expand 10 after
3134 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 3134 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
3135 __ add(pc, r1, Operand(masm_->CodeObject())); 3135 __ add(pc, r1, Operand(masm_->CodeObject()));
3136 } 3136 }
3137 3137
3138 3138
3139 #undef __ 3139 #undef __
3140 3140
3141 } } // namespace v8::internal 3141 } } // namespace v8::internal
3142 3142
3143 #endif // V8_TARGET_ARCH_ARM 3143 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698