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

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

Issue 2944013002: Remove TypeFeedbackId parameters from assembler and full-code. (Closed)
Patch Set: REBASE+fixes. Created 3 years, 6 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/ia32/macro-assembler-ia32.cc ('k') | src/mips/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 (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1721 matching lines...) Expand 10 before | Expand all | Expand 10 after
1732 Assembler* assem_; 1732 Assembler* assem_;
1733 1733
1734 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockGrowBufferScope); 1734 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockGrowBufferScope);
1735 }; 1735 };
1736 1736
1737 // Debugging. 1737 // Debugging.
1738 1738
1739 // Mark address of a debug break slot. 1739 // Mark address of a debug break slot.
1740 void RecordDebugBreakSlot(RelocInfo::Mode mode); 1740 void RecordDebugBreakSlot(RelocInfo::Mode mode);
1741 1741
1742 // Record the AST id of the CallIC being compiled, so that it can be placed
1743 // in the relocation information.
1744 void SetRecordedAstId(TypeFeedbackId ast_id) {
1745 DCHECK(recorded_ast_id_.IsNone());
1746 recorded_ast_id_ = ast_id;
1747 }
1748
1749 TypeFeedbackId RecordedAstId() {
1750 DCHECK(!recorded_ast_id_.IsNone());
1751 return recorded_ast_id_;
1752 }
1753
1754 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); }
1755
1756 // Record a comment relocation entry that can be used by a disassembler. 1742 // Record a comment relocation entry that can be used by a disassembler.
1757 // Use --code-comments to enable. 1743 // Use --code-comments to enable.
1758 void RecordComment(const char* msg); 1744 void RecordComment(const char* msg);
1759 1745
1760 // Record a deoptimization reason that can be used by a log or cpu profiler. 1746 // Record a deoptimization reason that can be used by a log or cpu profiler.
1761 // Use --trace-deopt to enable. 1747 // Use --trace-deopt to enable.
1762 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position, 1748 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position,
1763 int id); 1749 int id);
1764 1750
1765 static int RelocateInternalReference(RelocInfo::Mode rmode, byte* pc, 1751 static int RelocateInternalReference(RelocInfo::Mode rmode, byte* pc,
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1882 1868
1883 protected: 1869 protected:
1884 // Load Scaled Address instruction. 1870 // Load Scaled Address instruction.
1885 void lsa(Register rd, Register rt, Register rs, uint8_t sa); 1871 void lsa(Register rd, Register rt, Register rs, uint8_t sa);
1886 1872
1887 // Helpers. 1873 // Helpers.
1888 void LoadRegPlusOffsetToAt(const MemOperand& src); 1874 void LoadRegPlusOffsetToAt(const MemOperand& src);
1889 int32_t LoadRegPlusUpperOffsetPartToAt(const MemOperand& src); 1875 int32_t LoadRegPlusUpperOffsetPartToAt(const MemOperand& src);
1890 int32_t LoadUpperOffsetForTwoMemoryAccesses(const MemOperand& src); 1876 int32_t LoadUpperOffsetForTwoMemoryAccesses(const MemOperand& src);
1891 1877
1892 // Relocation for a type-recording IC has the AST id added to it. This
1893 // member variable is a way to pass the information from the call site to
1894 // the relocation info.
1895 TypeFeedbackId recorded_ast_id_;
1896
1897 int32_t buffer_space() const { return reloc_info_writer.pos() - pc_; } 1878 int32_t buffer_space() const { return reloc_info_writer.pos() - pc_; }
1898 1879
1899 // Decode branch instruction at pos and return branch target pos. 1880 // Decode branch instruction at pos and return branch target pos.
1900 int target_at(int pos, bool is_internal); 1881 int target_at(int pos, bool is_internal);
1901 1882
1902 // Patch branch instruction at pos to branch to given branch target pos. 1883 // Patch branch instruction at pos to branch to given branch target pos.
1903 void target_at_put(int pos, int target_pos, bool is_internal); 1884 void target_at_put(int pos, int target_pos, bool is_internal);
1904 1885
1905 // Say if we need to relocate with this mode. 1886 // Say if we need to relocate with this mode.
1906 bool MustUseReg(RelocInfo::Mode rmode); 1887 bool MustUseReg(RelocInfo::Mode rmode);
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
2251 public: 2232 public:
2252 explicit EnsureSpace(Assembler* assembler) { 2233 explicit EnsureSpace(Assembler* assembler) {
2253 assembler->CheckBuffer(); 2234 assembler->CheckBuffer();
2254 } 2235 }
2255 }; 2236 };
2256 2237
2257 } // namespace internal 2238 } // namespace internal
2258 } // namespace v8 2239 } // namespace v8
2259 2240
2260 #endif // V8_ARM_ASSEMBLER_MIPS_H_ 2241 #endif // V8_ARM_ASSEMBLER_MIPS_H_
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/mips/assembler-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698