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

Side by Side Diff: src/mips/macro-assembler-mips.h

Issue 1736323002: MIPS: [runtime] Unify and simplify how frames are marked. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/mips/frames-mips.h ('k') | src/mips/macro-assembler-mips.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 5 #ifndef V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 6 #define V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
7 7
8 #include "src/assembler.h" 8 #include "src/assembler.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/mips/assembler-mips.h" 10 #include "src/mips/assembler-mips.h"
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 lw(src3, MemOperand(sp, 0 * kPointerSize)); 755 lw(src3, MemOperand(sp, 0 * kPointerSize));
756 lw(src2, MemOperand(sp, 1 * kPointerSize)); 756 lw(src2, MemOperand(sp, 1 * kPointerSize));
757 lw(src1, MemOperand(sp, 2 * kPointerSize)); 757 lw(src1, MemOperand(sp, 2 * kPointerSize));
758 Addu(sp, sp, 3 * kPointerSize); 758 Addu(sp, sp, 3 * kPointerSize);
759 } 759 }
760 760
761 void Pop(uint32_t count = 1) { 761 void Pop(uint32_t count = 1) {
762 Addu(sp, sp, Operand(count * kPointerSize)); 762 Addu(sp, sp, Operand(count * kPointerSize));
763 } 763 }
764 764
765 // Push a fixed frame, consisting of ra, fp.
766 void PushCommonFrame(Register marker_reg = no_reg);
767
768 // Push a standard frame, consisting of ra, fp, context and JS function.
769 void PushStandardFrame(Register function_reg);
770
771 void PopCommonFrame(Register marker_reg = no_reg);
772
765 // Push and pop the registers that can hold pointers, as defined by the 773 // Push and pop the registers that can hold pointers, as defined by the
766 // RegList constant kSafepointSavedRegisters. 774 // RegList constant kSafepointSavedRegisters.
767 void PushSafepointRegisters(); 775 void PushSafepointRegisters();
768 void PopSafepointRegisters(); 776 void PopSafepointRegisters();
769 // Store value in register src in the safepoint stack slot for 777 // Store value in register src in the safepoint stack slot for
770 // register dst. 778 // register dst.
771 void StoreToSafepointRegisterSlot(Register src, Register dst); 779 void StoreToSafepointRegisterSlot(Register src, Register dst);
772 // Load the value of the src register from its safepoint stack slot 780 // Load the value of the src register from its safepoint stack slot
773 // into register dst. 781 // into register dst.
774 void LoadFromSafepointRegisterSlot(Register dst, Register src); 782 void LoadFromSafepointRegisterSlot(Register dst, Register src);
(...skipping 1023 matching lines...) Expand 10 before | Expand all | Expand 10 after
1798 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1806 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1799 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1807 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1800 #else 1808 #else
1801 #define ACCESS_MASM(masm) masm-> 1809 #define ACCESS_MASM(masm) masm->
1802 #endif 1810 #endif
1803 1811
1804 } // namespace internal 1812 } // namespace internal
1805 } // namespace v8 1813 } // namespace v8
1806 1814
1807 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1815 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/mips/frames-mips.h ('k') | src/mips/macro-assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698