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

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

Issue 9316131: Properly initialize element-transitioning array literals on ARM. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review feedback Created 8 years, 10 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/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 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 7340 matching lines...) Expand 10 before | Expand all | Expand 10 after
7351 // FAST_ELEMENTS, and value is Smi. 7351 // FAST_ELEMENTS, and value is Smi.
7352 __ bind(&smi_element); 7352 __ bind(&smi_element);
7353 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7353 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7354 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); 7354 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize));
7355 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); 7355 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize));
7356 __ Ret(); 7356 __ Ret();
7357 7357
7358 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. 7358 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS.
7359 __ bind(&double_elements); 7359 __ bind(&double_elements);
7360 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7360 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7361 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r10, 7361 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2,
7362 &slow_elements); 7362 &slow_elements);
7363 __ Ret(); 7363 __ Ret();
7364 } 7364 }
7365 7365
7366 #undef __ 7366 #undef __
7367 7367
7368 } } // namespace v8::internal 7368 } } // namespace v8::internal
7369 7369
7370 #endif // V8_TARGET_ARCH_ARM 7370 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/macro-assembler-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698