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

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

Issue 1696043002: [runtime] Unify and simplify how frames are marked (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix merge problems Created 4 years, 9 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
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/mips64/assembler-mips64.h" 10 #include "src/mips64/assembler-mips64.h"
(...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 ld(src3, MemOperand(sp, 0 * kPointerSize)); 797 ld(src3, MemOperand(sp, 0 * kPointerSize));
798 ld(src2, MemOperand(sp, 1 * kPointerSize)); 798 ld(src2, MemOperand(sp, 1 * kPointerSize));
799 ld(src1, MemOperand(sp, 2 * kPointerSize)); 799 ld(src1, MemOperand(sp, 2 * kPointerSize));
800 Daddu(sp, sp, 3 * kPointerSize); 800 Daddu(sp, sp, 3 * kPointerSize);
801 } 801 }
802 802
803 void Pop(uint32_t count = 1) { 803 void Pop(uint32_t count = 1) {
804 Daddu(sp, sp, Operand(count * kPointerSize)); 804 Daddu(sp, sp, Operand(count * kPointerSize));
805 } 805 }
806 806
807 // Push a fixed frame, consisting of ra, fp.
808 void PushCommonFrame(Register marker_reg = no_reg);
809
810 // Push a standard frame, consisting of ra, fp, context and JS function.
811 void PushStandardFrame(Register function_reg);
812
813 void PopCommonFrame(Register marker_reg = no_reg);
814
807 // Push and pop the registers that can hold pointers, as defined by the 815 // Push and pop the registers that can hold pointers, as defined by the
808 // RegList constant kSafepointSavedRegisters. 816 // RegList constant kSafepointSavedRegisters.
809 void PushSafepointRegisters(); 817 void PushSafepointRegisters();
810 void PopSafepointRegisters(); 818 void PopSafepointRegisters();
811 // Store value in register src in the safepoint stack slot for 819 // Store value in register src in the safepoint stack slot for
812 // register dst. 820 // register dst.
813 void StoreToSafepointRegisterSlot(Register src, Register dst); 821 void StoreToSafepointRegisterSlot(Register src, Register dst);
814 // Load the value of the src register from its safepoint stack slot 822 // Load the value of the src register from its safepoint stack slot
815 // into register dst. 823 // into register dst.
816 void LoadFromSafepointRegisterSlot(Register dst, Register src); 824 void LoadFromSafepointRegisterSlot(Register dst, Register src);
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1761 dsrl(dst, src, shift); 1769 dsrl(dst, src, shift);
1762 And(dst, dst, Operand(mask)); 1770 And(dst, dst, Operand(mask));
1763 dsll32(dst, dst, 0); 1771 dsll32(dst, dst, 0);
1764 } 1772 }
1765 1773
1766 template<typename Field> 1774 template<typename Field>
1767 void DecodeFieldToSmi(Register reg) { 1775 void DecodeFieldToSmi(Register reg) {
1768 DecodeField<Field>(reg, reg); 1776 DecodeField<Field>(reg, reg);
1769 } 1777 }
1770 // Generates function and stub prologue code. 1778 // Generates function and stub prologue code.
1771 void StubPrologue(); 1779 void StubPrologue(StackFrame::Type type);
1772 void Prologue(bool code_pre_aging); 1780 void Prologue(bool code_pre_aging);
1773 1781
1774 // Load the type feedback vector from a JavaScript frame. 1782 // Load the type feedback vector from a JavaScript frame.
1775 void EmitLoadTypeFeedbackVector(Register vector); 1783 void EmitLoadTypeFeedbackVector(Register vector);
1776 1784
1777 // Activation support. 1785 // Activation support.
1778 void EnterFrame(StackFrame::Type type); 1786 void EnterFrame(StackFrame::Type type);
1779 void EnterFrame(StackFrame::Type type, bool load_constant_pool_pointer_reg); 1787 void EnterFrame(StackFrame::Type type, bool load_constant_pool_pointer_reg);
1780 void LeaveFrame(StackFrame::Type type); 1788 void LeaveFrame(StackFrame::Type type);
1781 1789
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__) 1981 #define __FILE_LINE__ __FILE__ ":" CODE_COVERAGE_TOSTRING(__LINE__)
1974 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm-> 1982 #define ACCESS_MASM(masm) masm->stop(__FILE_LINE__); masm->
1975 #else 1983 #else
1976 #define ACCESS_MASM(masm) masm-> 1984 #define ACCESS_MASM(masm) masm->
1977 #endif 1985 #endif
1978 1986
1979 } // namespace internal 1987 } // namespace internal
1980 } // namespace v8 1988 } // namespace v8
1981 1989
1982 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_ 1990 #endif // V8_MIPS_MACRO_ASSEMBLER_MIPS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698