OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_ASSEMBLER_ARM64_H_ | 5 #ifndef V8_ARM64_ASSEMBLER_ARM64_H_ |
6 #define V8_ARM64_ASSEMBLER_ARM64_H_ | 6 #define V8_ARM64_ASSEMBLER_ARM64_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
915 void StartBlockPools() { | 915 void StartBlockPools() { |
916 StartBlockConstPool(); | 916 StartBlockConstPool(); |
917 StartBlockVeneerPool(); | 917 StartBlockVeneerPool(); |
918 } | 918 } |
919 void EndBlockPools() { | 919 void EndBlockPools() { |
920 EndBlockConstPool(); | 920 EndBlockConstPool(); |
921 EndBlockVeneerPool(); | 921 EndBlockVeneerPool(); |
922 } | 922 } |
923 | 923 |
924 // Debugging ---------------------------------------------------------------- | 924 // Debugging ---------------------------------------------------------------- |
925 PositionsRecorder* positions_recorder() { return &positions_recorder_; } | 925 AssemblerPositionsRecorder* positions_recorder() { |
| 926 return &positions_recorder_; |
| 927 } |
926 void RecordComment(const char* msg); | 928 void RecordComment(const char* msg); |
927 | 929 |
928 // Record a deoptimization reason that can be used by a log or cpu profiler. | 930 // Record a deoptimization reason that can be used by a log or cpu profiler. |
929 // Use --trace-deopt to enable. | 931 // Use --trace-deopt to enable. |
930 void RecordDeoptReason(const int reason, int raw_position); | 932 void RecordDeoptReason(const int reason, int raw_position); |
931 | 933 |
932 int buffer_space() const; | 934 int buffer_space() const; |
933 | 935 |
934 // Mark generator continuation. | 936 // Mark generator continuation. |
935 void RecordGeneratorContinuation(); | 937 void RecordGeneratorContinuation(); |
(...skipping 1192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2128 // not later attempt (likely unsuccessfully) to patch it to branch directly to | 2130 // not later attempt (likely unsuccessfully) to patch it to branch directly to |
2129 // the label. | 2131 // the label. |
2130 void DeleteUnresolvedBranchInfoForLabel(Label* label); | 2132 void DeleteUnresolvedBranchInfoForLabel(Label* label); |
2131 // This function deletes the information related to the label by traversing | 2133 // This function deletes the information related to the label by traversing |
2132 // the label chain, and for each PC-relative instruction in the chain checking | 2134 // the label chain, and for each PC-relative instruction in the chain checking |
2133 // if pending unresolved information exists. Its complexity is proportional to | 2135 // if pending unresolved information exists. Its complexity is proportional to |
2134 // the length of the label chain. | 2136 // the length of the label chain. |
2135 void DeleteUnresolvedBranchInfoForLabelTraverse(Label* label); | 2137 void DeleteUnresolvedBranchInfoForLabelTraverse(Label* label); |
2136 | 2138 |
2137 private: | 2139 private: |
2138 PositionsRecorder positions_recorder_; | 2140 AssemblerPositionsRecorder positions_recorder_; |
2139 friend class PositionsRecorder; | 2141 friend class AssemblerPositionsRecorder; |
2140 friend class EnsureSpace; | 2142 friend class EnsureSpace; |
2141 friend class ConstPool; | 2143 friend class ConstPool; |
2142 }; | 2144 }; |
2143 | 2145 |
2144 class PatchingAssembler : public Assembler { | 2146 class PatchingAssembler : public Assembler { |
2145 public: | 2147 public: |
2146 // Create an Assembler with a buffer starting at 'start'. | 2148 // Create an Assembler with a buffer starting at 'start'. |
2147 // The buffer size is | 2149 // The buffer size is |
2148 // size of instructions to patch + kGap | 2150 // size of instructions to patch + kGap |
2149 // Where kGap is the distance from which the Assembler tries to grow the | 2151 // Where kGap is the distance from which the Assembler tries to grow the |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2187 public: | 2189 public: |
2188 explicit EnsureSpace(Assembler* assembler) { | 2190 explicit EnsureSpace(Assembler* assembler) { |
2189 assembler->CheckBufferSpace(); | 2191 assembler->CheckBufferSpace(); |
2190 } | 2192 } |
2191 }; | 2193 }; |
2192 | 2194 |
2193 } // namespace internal | 2195 } // namespace internal |
2194 } // namespace v8 | 2196 } // namespace v8 |
2195 | 2197 |
2196 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2198 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
OLD | NEW |