OLD | NEW |
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 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1790 Assembler* assem_; | 1790 Assembler* assem_; |
1791 | 1791 |
1792 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockGrowBufferScope); | 1792 DISALLOW_IMPLICIT_CONSTRUCTORS(BlockGrowBufferScope); |
1793 }; | 1793 }; |
1794 | 1794 |
1795 // Debugging. | 1795 // Debugging. |
1796 | 1796 |
1797 // Mark address of a debug break slot. | 1797 // Mark address of a debug break slot. |
1798 void RecordDebugBreakSlot(RelocInfo::Mode mode); | 1798 void RecordDebugBreakSlot(RelocInfo::Mode mode); |
1799 | 1799 |
1800 // Record the AST id of the CallIC being compiled, so that it can be placed | |
1801 // in the relocation information. | |
1802 void SetRecordedAstId(TypeFeedbackId ast_id) { | |
1803 DCHECK(recorded_ast_id_.IsNone()); | |
1804 recorded_ast_id_ = ast_id; | |
1805 } | |
1806 | |
1807 TypeFeedbackId RecordedAstId() { | |
1808 DCHECK(!recorded_ast_id_.IsNone()); | |
1809 return recorded_ast_id_; | |
1810 } | |
1811 | |
1812 void ClearRecordedAstId() { recorded_ast_id_ = TypeFeedbackId::None(); } | |
1813 | |
1814 // Record a comment relocation entry that can be used by a disassembler. | 1800 // Record a comment relocation entry that can be used by a disassembler. |
1815 // Use --code-comments to enable. | 1801 // Use --code-comments to enable. |
1816 void RecordComment(const char* msg); | 1802 void RecordComment(const char* msg); |
1817 | 1803 |
1818 // Record a deoptimization reason that can be used by a log or cpu profiler. | 1804 // Record a deoptimization reason that can be used by a log or cpu profiler. |
1819 // Use --trace-deopt to enable. | 1805 // Use --trace-deopt to enable. |
1820 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position, | 1806 void RecordDeoptReason(DeoptimizeReason reason, SourcePosition position, |
1821 int id); | 1807 int id); |
1822 | 1808 |
1823 static int RelocateInternalReference(RelocInfo::Mode rmode, byte* pc, | 1809 static int RelocateInternalReference(RelocInfo::Mode rmode, byte* pc, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1932 inline int UnboundLabelsCount() { return unbound_labels_count_; } | 1918 inline int UnboundLabelsCount() { return unbound_labels_count_; } |
1933 | 1919 |
1934 protected: | 1920 protected: |
1935 // Load Scaled Address instructions. | 1921 // Load Scaled Address instructions. |
1936 void lsa(Register rd, Register rt, Register rs, uint8_t sa); | 1922 void lsa(Register rd, Register rt, Register rs, uint8_t sa); |
1937 void dlsa(Register rd, Register rt, Register rs, uint8_t sa); | 1923 void dlsa(Register rd, Register rt, Register rs, uint8_t sa); |
1938 | 1924 |
1939 // Helpers. | 1925 // Helpers. |
1940 void LoadRegPlusOffsetToAt(const MemOperand& src); | 1926 void LoadRegPlusOffsetToAt(const MemOperand& src); |
1941 | 1927 |
1942 // Relocation for a type-recording IC has the AST id added to it. This | |
1943 // member variable is a way to pass the information from the call site to | |
1944 // the relocation info. | |
1945 TypeFeedbackId recorded_ast_id_; | |
1946 | |
1947 inline static void set_target_internal_reference_encoded_at(Address pc, | 1928 inline static void set_target_internal_reference_encoded_at(Address pc, |
1948 Address target); | 1929 Address target); |
1949 | 1930 |
1950 int64_t buffer_space() const { return reloc_info_writer.pos() - pc_; } | 1931 int64_t buffer_space() const { return reloc_info_writer.pos() - pc_; } |
1951 | 1932 |
1952 // Decode branch instruction at pos and return branch target pos. | 1933 // Decode branch instruction at pos and return branch target pos. |
1953 int target_at(int pos, bool is_internal); | 1934 int target_at(int pos, bool is_internal); |
1954 | 1935 |
1955 // Patch branch instruction at pos to branch to given branch target pos. | 1936 // Patch branch instruction at pos to branch to given branch target pos. |
1956 void target_at_put(int pos, int target_pos, bool is_internal); | 1937 void target_at_put(int pos, int target_pos, bool is_internal); |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2300 public: | 2281 public: |
2301 explicit EnsureSpace(Assembler* assembler) { | 2282 explicit EnsureSpace(Assembler* assembler) { |
2302 assembler->CheckBuffer(); | 2283 assembler->CheckBuffer(); |
2303 } | 2284 } |
2304 }; | 2285 }; |
2305 | 2286 |
2306 } // namespace internal | 2287 } // namespace internal |
2307 } // namespace v8 | 2288 } // namespace v8 |
2308 | 2289 |
2309 #endif // V8_ARM_ASSEMBLER_MIPS_H_ | 2290 #endif // V8_ARM_ASSEMBLER_MIPS_H_ |
OLD | NEW |