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

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

Issue 5839002: Merge bleeding edge revision 6020 to 2.4 branch. (Closed)
Patch Set: Update patch-level. Untabify. Created 10 years 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 | « no previous file | src/ia32/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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 5692 matching lines...) Expand 10 before | Expand all | Expand 10 after
5703 // Smi-tagging is equivalent to multiplying by 2. 5703 // Smi-tagging is equivalent to multiplying by 2.
5704 STATIC_ASSERT(kSmiTag == 0); 5704 STATIC_ASSERT(kSmiTag == 0);
5705 STATIC_ASSERT(kSmiTagSize == 1); 5705 STATIC_ASSERT(kSmiTagSize == 1);
5706 5706
5707 // Check that both indices are smis. 5707 // Check that both indices are smis.
5708 __ mov(tmp2, index1); 5708 __ mov(tmp2, index1);
5709 __ orr(tmp2, tmp2, index2); 5709 __ orr(tmp2, tmp2, index2);
5710 __ tst(tmp2, Operand(kSmiTagMask)); 5710 __ tst(tmp2, Operand(kSmiTagMask));
5711 deferred->Branch(nz); 5711 deferred->Branch(nz);
5712 5712
5713 // Check that both indices are valid.
5714 __ ldr(tmp2, FieldMemOperand(object, JSArray::kLengthOffset));
5715 __ cmp(tmp2, index1);
5716 __ cmp(tmp2, index2, hi);
5717 deferred->Branch(ls);
5718
5713 // Bring the offsets into the fixed array in tmp1 into index1 and 5719 // Bring the offsets into the fixed array in tmp1 into index1 and
5714 // index2. 5720 // index2.
5715 __ mov(tmp2, Operand(FixedArray::kHeaderSize - kHeapObjectTag)); 5721 __ mov(tmp2, Operand(FixedArray::kHeaderSize - kHeapObjectTag));
5716 __ add(index1, tmp2, Operand(index1, LSL, kPointerSizeLog2 - kSmiTagSize)); 5722 __ add(index1, tmp2, Operand(index1, LSL, kPointerSizeLog2 - kSmiTagSize));
5717 __ add(index2, tmp2, Operand(index2, LSL, kPointerSizeLog2 - kSmiTagSize)); 5723 __ add(index2, tmp2, Operand(index2, LSL, kPointerSizeLog2 - kSmiTagSize));
5718 5724
5719 // Swap elements. 5725 // Swap elements.
5720 Register tmp3 = object; 5726 Register tmp3 = object;
5721 object = no_reg; 5727 object = no_reg;
5722 __ ldr(tmp3, MemOperand(tmp1, index1)); 5728 __ ldr(tmp3, MemOperand(tmp1, index1));
(...skipping 1586 matching lines...) Expand 10 before | Expand all | Expand 10 after
7309 BinaryOpIC::GetName(runtime_operands_type_)); 7315 BinaryOpIC::GetName(runtime_operands_type_));
7310 return name_; 7316 return name_;
7311 } 7317 }
7312 7318
7313 7319
7314 #undef __ 7320 #undef __
7315 7321
7316 } } // namespace v8::internal 7322 } } // namespace v8::internal
7317 7323
7318 #endif // V8_TARGET_ARCH_ARM 7324 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/ia32/codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698