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

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

Issue 2255004: Cardmarking writebarrier. (Closed)
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
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/ic-arm.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 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 899 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 __ b(ne, &fixed_array); 910 __ b(ne, &fixed_array);
911 911
912 // We got a map in register r0. Get the enumeration cache from it. 912 // We got a map in register r0. Get the enumeration cache from it.
913 __ ldr(r1, FieldMemOperand(r0, Map::kInstanceDescriptorsOffset)); 913 __ ldr(r1, FieldMemOperand(r0, Map::kInstanceDescriptorsOffset));
914 __ ldr(r1, FieldMemOperand(r1, DescriptorArray::kEnumerationIndexOffset)); 914 __ ldr(r1, FieldMemOperand(r1, DescriptorArray::kEnumerationIndexOffset));
915 __ ldr(r2, FieldMemOperand(r1, DescriptorArray::kEnumCacheBridgeCacheOffset)); 915 __ ldr(r2, FieldMemOperand(r1, DescriptorArray::kEnumCacheBridgeCacheOffset));
916 916
917 // Setup the four remaining stack slots. 917 // Setup the four remaining stack slots.
918 __ push(r0); // Map. 918 __ push(r0); // Map.
919 __ ldr(r1, FieldMemOperand(r2, FixedArray::kLengthOffset)); 919 __ ldr(r1, FieldMemOperand(r2, FixedArray::kLengthOffset));
920 __ mov(r1, Operand(r1, LSL, kSmiTagSize));
921 __ mov(r0, Operand(Smi::FromInt(0))); 920 __ mov(r0, Operand(Smi::FromInt(0)));
922 // Push enumeration cache, enumeration cache length (as smi) and zero. 921 // Push enumeration cache, enumeration cache length (as smi) and zero.
923 __ Push(r2, r1, r0); 922 __ Push(r2, r1, r0);
924 __ jmp(&loop); 923 __ jmp(&loop);
925 924
926 // We got a fixed array in register r0. Iterate through that. 925 // We got a fixed array in register r0. Iterate through that.
927 __ bind(&fixed_array); 926 __ bind(&fixed_array);
928 __ mov(r1, Operand(Smi::FromInt(0))); // Map (0) - force slow check. 927 __ mov(r1, Operand(Smi::FromInt(0))); // Map (0) - force slow check.
929 __ Push(r1, r0); 928 __ Push(r1, r0);
930 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset)); 929 __ ldr(r1, FieldMemOperand(r0, FixedArray::kLengthOffset));
931 __ mov(r1, Operand(r1, LSL, kSmiTagSize));
932 __ mov(r0, Operand(Smi::FromInt(0))); 930 __ mov(r0, Operand(Smi::FromInt(0)));
933 __ Push(r1, r0); // Fixed array length (as smi) and initial index. 931 __ Push(r1, r0); // Fixed array length (as smi) and initial index.
934 932
935 // Generate code for doing the condition check. 933 // Generate code for doing the condition check.
936 __ bind(&loop); 934 __ bind(&loop);
937 // Load the current count to r0, load the length to r1. 935 // Load the current count to r0, load the length to r1.
938 __ Ldrd(r0, r1, MemOperand(sp, 0 * kPointerSize)); 936 __ Ldrd(r0, r1, MemOperand(sp, 0 * kPointerSize));
939 __ cmp(r0, r1); // Compare to the array length. 937 __ cmp(r0, r1); // Compare to the array length.
940 __ b(hs, loop_statement.break_target()); 938 __ b(hs, loop_statement.break_target());
941 939
(...skipping 2193 matching lines...) Expand 10 before | Expand all | Expand 10 after
3135 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 3133 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
3136 __ add(pc, r1, Operand(masm_->CodeObject())); 3134 __ add(pc, r1, Operand(masm_->CodeObject()));
3137 } 3135 }
3138 3136
3139 3137
3140 #undef __ 3138 #undef __
3141 3139
3142 } } // namespace v8::internal 3140 } } // namespace v8::internal
3143 3141
3144 #endif // V8_TARGET_ARCH_ARM 3142 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698