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

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

Issue 2842303003: [heap] Remove max executable size configuration. (Closed)
Patch Set: comment Created 3 years, 7 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 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after
2127 DCHECK(!unresolved_branches_.empty()); 2127 DCHECK(!unresolved_branches_.empty());
2128 return unresolved_branches_.begin()->first; 2128 return unresolved_branches_.begin()->first;
2129 } 2129 }
2130 // This is similar to next_constant_pool_check_ and helps reduce the overhead 2130 // This is similar to next_constant_pool_check_ and helps reduce the overhead
2131 // of checking for veneer pools. 2131 // of checking for veneer pools.
2132 // It is maintained to the closest unresolved branch limit minus the maximum 2132 // It is maintained to the closest unresolved branch limit minus the maximum
2133 // veneer margin (or kMaxInt if there are no unresolved branches). 2133 // veneer margin (or kMaxInt if there are no unresolved branches).
2134 int next_veneer_pool_check_; 2134 int next_veneer_pool_check_;
2135 2135
2136 private: 2136 private:
2137 // Avoid overflows for displacements etc.
2138 static const int kMaximalBufferSize = 512 * MB;
2139
2137 // If a veneer is emitted for a branch instruction, that instruction must be 2140 // If a veneer is emitted for a branch instruction, that instruction must be
2138 // removed from the associated label's link chain so that the assembler does 2141 // removed from the associated label's link chain so that the assembler does
2139 // not later attempt (likely unsuccessfully) to patch it to branch directly to 2142 // not later attempt (likely unsuccessfully) to patch it to branch directly to
2140 // the label. 2143 // the label.
2141 void DeleteUnresolvedBranchInfoForLabel(Label* label); 2144 void DeleteUnresolvedBranchInfoForLabel(Label* label);
2142 // This function deletes the information related to the label by traversing 2145 // This function deletes the information related to the label by traversing
2143 // the label chain, and for each PC-relative instruction in the chain checking 2146 // the label chain, and for each PC-relative instruction in the chain checking
2144 // if pending unresolved information exists. Its complexity is proportional to 2147 // if pending unresolved information exists. Its complexity is proportional to
2145 // the length of the label chain. 2148 // the length of the label chain.
2146 void DeleteUnresolvedBranchInfoForLabelTraverse(Label* label); 2149 void DeleteUnresolvedBranchInfoForLabelTraverse(Label* label);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
2203 public: 2206 public:
2204 explicit EnsureSpace(Assembler* assembler) { 2207 explicit EnsureSpace(Assembler* assembler) {
2205 assembler->CheckBufferSpace(); 2208 assembler->CheckBufferSpace();
2206 } 2209 }
2207 }; 2210 };
2208 2211
2209 } // namespace internal 2212 } // namespace internal
2210 } // namespace v8 2213 } // namespace v8
2211 2214
2212 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ 2215 #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