| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |