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

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

Issue 11412120: MIPS: Support all fast elements kinds in the major array operations. Currently missing support for … (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/ic-mips.cc » ('j') | src/objects-inl.h » ('J')
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 7710 matching lines...) Expand 10 before | Expand all | Expand 10 after
7721 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); 7721 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset));
7722 __ sll(t2, a3, kPointerSizeLog2 - kSmiTagSize); 7722 __ sll(t2, a3, kPointerSizeLog2 - kSmiTagSize);
7723 __ Addu(t2, t1, t2); 7723 __ Addu(t2, t1, t2);
7724 __ sw(a0, FieldMemOperand(t2, FixedArray::kHeaderSize)); 7724 __ sw(a0, FieldMemOperand(t2, FixedArray::kHeaderSize));
7725 __ Ret(USE_DELAY_SLOT); 7725 __ Ret(USE_DELAY_SLOT);
7726 __ mov(v0, a0); 7726 __ mov(v0, a0);
7727 7727
7728 // Array literal has ElementsKind of FAST_*_DOUBLE_ELEMENTS. 7728 // Array literal has ElementsKind of FAST_*_DOUBLE_ELEMENTS.
7729 __ bind(&double_elements); 7729 __ bind(&double_elements);
7730 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset)); 7730 __ lw(t1, FieldMemOperand(a1, JSObject::kElementsOffset));
7731 __ StoreNumberToDoubleElements(a0, a3, a1, 7731 __ StoreNumberToDoubleElements(a0, a3,
7732 // Overwrites all regs after this. 7732 // Overwrites all regs after this.
7733 t1, t2, t3, t5, a2, 7733 t1, t2, t3, t5, a2,
7734 &slow_elements); 7734 &slow_elements);
7735 __ Ret(USE_DELAY_SLOT); 7735 __ Ret(USE_DELAY_SLOT);
7736 __ mov(v0, a0); 7736 __ mov(v0, a0);
7737 } 7737 }
7738 7738
7739 7739
7740 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { 7740 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) {
7741 if (entry_hook_ != NULL) { 7741 if (entry_hook_ != NULL) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
7795 __ Pop(ra, t1, a1); 7795 __ Pop(ra, t1, a1);
7796 __ Ret(); 7796 __ Ret();
7797 } 7797 }
7798 7798
7799 7799
7800 #undef __ 7800 #undef __
7801 7801
7802 } } // namespace v8::internal 7802 } } // namespace v8::internal
7803 7803
7804 #endif // V8_TARGET_ARCH_MIPS 7804 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/mips/ic-mips.cc » ('j') | src/objects-inl.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698