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

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

Issue 2109613004: Remove position info from relocation info. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@turbosourcepos
Patch Set: fix Created 4 years, 5 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/arm/assembler-arm.cc ('k') | src/arm64/assembler-arm64.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 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 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 void StartBlockPools() { 918 void StartBlockPools() {
919 StartBlockConstPool(); 919 StartBlockConstPool();
920 StartBlockVeneerPool(); 920 StartBlockVeneerPool();
921 } 921 }
922 void EndBlockPools() { 922 void EndBlockPools() {
923 EndBlockConstPool(); 923 EndBlockConstPool();
924 EndBlockVeneerPool(); 924 EndBlockVeneerPool();
925 } 925 }
926 926
927 // Debugging ---------------------------------------------------------------- 927 // Debugging ----------------------------------------------------------------
928 AssemblerPositionsRecorder* positions_recorder() {
929 return &positions_recorder_;
930 }
931 void RecordComment(const char* msg); 928 void RecordComment(const char* msg);
932 929
933 // 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.
934 // Use --trace-deopt to enable. 931 // Use --trace-deopt to enable.
935 void RecordDeoptReason(const int reason, int raw_position, int id); 932 void RecordDeoptReason(const int reason, int raw_position, int id);
936 933
937 int buffer_space() const; 934 int buffer_space() const;
938 935
939 // Mark generator continuation. 936 // Mark generator continuation.
940 void RecordGeneratorContinuation(); 937 void RecordGeneratorContinuation();
(...skipping 1233 matching lines...) Expand 10 before | Expand all | Expand 10 after
2174 // not later attempt (likely unsuccessfully) to patch it to branch directly to 2171 // not later attempt (likely unsuccessfully) to patch it to branch directly to
2175 // the label. 2172 // the label.
2176 void DeleteUnresolvedBranchInfoForLabel(Label* label); 2173 void DeleteUnresolvedBranchInfoForLabel(Label* label);
2177 // This function deletes the information related to the label by traversing 2174 // This function deletes the information related to the label by traversing
2178 // the label chain, and for each PC-relative instruction in the chain checking 2175 // the label chain, and for each PC-relative instruction in the chain checking
2179 // if pending unresolved information exists. Its complexity is proportional to 2176 // if pending unresolved information exists. Its complexity is proportional to
2180 // the length of the label chain. 2177 // the length of the label chain.
2181 void DeleteUnresolvedBranchInfoForLabelTraverse(Label* label); 2178 void DeleteUnresolvedBranchInfoForLabelTraverse(Label* label);
2182 2179
2183 private: 2180 private:
2184 AssemblerPositionsRecorder positions_recorder_;
2185 friend class AssemblerPositionsRecorder;
2186 friend class EnsureSpace; 2181 friend class EnsureSpace;
2187 friend class ConstPool; 2182 friend class ConstPool;
2188 }; 2183 };
2189 2184
2190 class PatchingAssembler : public Assembler { 2185 class PatchingAssembler : public Assembler {
2191 public: 2186 public:
2192 // Create an Assembler with a buffer starting at 'start'. 2187 // Create an Assembler with a buffer starting at 'start'.
2193 // The buffer size is 2188 // The buffer size is
2194 // size of instructions to patch + kGap 2189 // size of instructions to patch + kGap
2195 // Where kGap is the distance from which the Assembler tries to grow the 2190 // 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
2233 public: 2228 public:
2234 explicit EnsureSpace(Assembler* assembler) { 2229 explicit EnsureSpace(Assembler* assembler) {
2235 assembler->CheckBufferSpace(); 2230 assembler->CheckBufferSpace();
2236 } 2231 }
2237 }; 2232 };
2238 2233
2239 } // namespace internal 2234 } // namespace internal
2240 } // namespace v8 2235 } // namespace v8
2241 2236
2242 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ 2237 #endif // V8_ARM64_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm/assembler-arm.cc ('k') | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698