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

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

Issue 363293004: ARM64: improve Adr patching (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.cc » ('j') | src/arm64/assembler-arm64.cc » ('J')
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 <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after
2279 EndBlockPools(); 2279 EndBlockPools();
2280 // Verify we have generated the number of instruction we expected. 2280 // Verify we have generated the number of instruction we expected.
2281 ASSERT((pc_offset() + kGap) == buffer_size_); 2281 ASSERT((pc_offset() + kGap) == buffer_size_);
2282 // Verify no relocation information has been emitted. 2282 // Verify no relocation information has been emitted.
2283 ASSERT(IsConstPoolEmpty()); 2283 ASSERT(IsConstPoolEmpty());
2284 // Flush the Instruction cache. 2284 // Flush the Instruction cache.
2285 size_t length = buffer_size_ - kGap; 2285 size_t length = buffer_size_ - kGap;
2286 CpuFeatures::FlushICache(buffer_, length); 2286 CpuFeatures::FlushICache(buffer_, length);
2287 } 2287 }
2288 2288
2289 static const int kMovInt64NInstrs = 4;
2290 void MovInt64(const Register& rd, int64_t imm);
2291
2292 // See definition of PatchAdrFar() for details. 2289 // See definition of PatchAdrFar() for details.
2293 static const int kAdrFarPatchableNNops = kMovInt64NInstrs - 1; 2290 static const int kAdrFarPatchableNNops = 2;
2294 static const int kAdrFarPatchableNInstrs = kAdrFarPatchableNNops + 3; 2291 static const int kAdrFarPatchableNInstrs = kAdrFarPatchableNNops + 2;
2295 void PatchAdrFar(Instruction* target); 2292 void PatchAdrFar(ptrdiff_t target_offset);
2296 }; 2293 };
2297 2294
2298 2295
2299 class EnsureSpace BASE_EMBEDDED { 2296 class EnsureSpace BASE_EMBEDDED {
2300 public: 2297 public:
2301 explicit EnsureSpace(Assembler* assembler) { 2298 explicit EnsureSpace(Assembler* assembler) {
2302 assembler->CheckBufferSpace(); 2299 assembler->CheckBufferSpace();
2303 } 2300 }
2304 }; 2301 };
2305 2302
2306 } } // namespace v8::internal 2303 } } // namespace v8::internal
2307 2304
2308 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ 2305 #endif // V8_ARM64_ASSEMBLER_ARM64_H_
OLDNEW
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.cc » ('j') | src/arm64/assembler-arm64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698