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

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

Issue 11377132: Support all fast elements kinds in the major array operations. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed comments (and rebased) Created 8 years, 1 month 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/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 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 7499 matching lines...) Expand 10 before | Expand all | Expand 10 after
7510 // and value is Smi. 7510 // and value is Smi.
7511 __ bind(&smi_element); 7511 __ bind(&smi_element);
7512 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7512 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7513 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); 7513 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize));
7514 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); 7514 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize));
7515 __ Ret(); 7515 __ Ret();
7516 7516
7517 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. 7517 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS.
7518 __ bind(&double_elements); 7518 __ bind(&double_elements);
7519 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); 7519 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset));
7520 __ StoreNumberToDoubleElements(r0, r3, r1, 7520 __ StoreNumberToDoubleElements(r0, r3,
7521 // Overwrites all regs after this. 7521 // Overwrites all regs after this.
7522 r5, r6, r7, r9, r2, 7522 r5, r6, r7, r9, r2,
7523 &slow_elements); 7523 &slow_elements);
7524 __ Ret(); 7524 __ Ret();
7525 } 7525 }
7526 7526
7527 7527
7528 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 7528 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
7529 if (entry_hook_ != NULL) { 7529 if (entry_hook_ != NULL) {
7530 PredictableCodeSizeScope predictable(masm); 7530 PredictableCodeSizeScope predictable(masm);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
7582 7582
7583 __ Pop(lr, r5, r1); 7583 __ Pop(lr, r5, r1);
7584 __ Ret(); 7584 __ Ret();
7585 } 7585 }
7586 7586
7587 #undef __ 7587 #undef __
7588 7588
7589 } } // namespace v8::internal 7589 } } // namespace v8::internal
7590 7590
7591 #endif // V8_TARGET_ARCH_ARM 7591 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698