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

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 9689010: MIPS: Properly initialize element-transitioning array literals on ARM. (Closed)
Patch Set: Created 8 years, 9 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 | « no previous file | src/mips/macro-assembler-mips.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 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 7659 matching lines...) Expand 10 before | Expand all | Expand 10 after
7670 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); 7670 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset));
7671 __ sll(t2, a3, kPointerSizeLog2 - kSmiTagSize); 7671 __ sll(t2, a3, kPointerSizeLog2 - kSmiTagSize);
7672 __ Addu(t2, t1, t2); 7672 __ Addu(t2, t1, t2);
7673 __ sw(a0, FieldMemOperand(t2, FixedArray::kHeaderSize)); 7673 __ sw(a0, FieldMemOperand(t2, FixedArray::kHeaderSize));
7674 __ Ret(USE_DELAY_SLOT); 7674 __ Ret(USE_DELAY_SLOT);
7675 __ mov(v0, a0); 7675 __ mov(v0, a0);
7676 7676
7677 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. 7677 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS.
7678 __ bind(&double_elements); 7678 __ bind(&double_elements);
7679 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); 7679 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset));
7680 __ StoreNumberToDoubleElements(a0, a3, a1, t1, t2, t3, t5, t6, 7680 __ StoreNumberToDoubleElements(a0, a3, a1, t1, t2, t3, t5, a2,
7681 &slow_elements); 7681 &slow_elements);
7682 __ Ret(USE_DELAY_SLOT); 7682 __ Ret(USE_DELAY_SLOT);
7683 __ mov(v0, a0); 7683 __ mov(v0, a0);
7684 } 7684 }
7685 7685
7686 7686
7687 #undef __ 7687 #undef __
7688 7688
7689 } } // namespace v8::internal 7689 } } // namespace v8::internal
7690 7690
7691 #endif // V8_TARGET_ARCH_MIPS 7691 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698