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 2261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2272 ~PatchingAssembler() { | 2272 ~PatchingAssembler() { |
2273 // Const pool should still be blocked. | 2273 // Const pool should still be blocked. |
2274 DCHECK(is_const_pool_blocked()); | 2274 DCHECK(is_const_pool_blocked()); |
2275 EndBlockPools(); | 2275 EndBlockPools(); |
2276 // Verify we have generated the number of instruction we expected. | 2276 // Verify we have generated the number of instruction we expected. |
2277 DCHECK((pc_offset() + kGap) == buffer_size_); | 2277 DCHECK((pc_offset() + kGap) == buffer_size_); |
2278 // Verify no relocation information has been emitted. | 2278 // Verify no relocation information has been emitted. |
2279 DCHECK(IsConstPoolEmpty()); | 2279 DCHECK(IsConstPoolEmpty()); |
2280 // Flush the Instruction cache. | 2280 // Flush the Instruction cache. |
2281 size_t length = buffer_size_ - kGap; | 2281 size_t length = buffer_size_ - kGap; |
2282 CpuFeatures::FlushICache(buffer_, length); | 2282 Assembler::FlushICache(isolate(), buffer_, length); |
Michael Starzinger
2015/09/11 12:18:05
This will crash, because the underlying assembler
Michael Lippautz
2015/09/11 12:25:15
Thanks for catching this ... ;)
| |
2283 } | 2283 } |
2284 | 2284 |
2285 // See definition of PatchAdrFar() for details. | 2285 // See definition of PatchAdrFar() for details. |
2286 static const int kAdrFarPatchableNNops = 2; | 2286 static const int kAdrFarPatchableNNops = 2; |
2287 static const int kAdrFarPatchableNInstrs = kAdrFarPatchableNNops + 2; | 2287 static const int kAdrFarPatchableNInstrs = kAdrFarPatchableNNops + 2; |
2288 void PatchAdrFar(int64_t target_offset); | 2288 void PatchAdrFar(int64_t target_offset); |
2289 }; | 2289 }; |
2290 | 2290 |
2291 | 2291 |
2292 class EnsureSpace BASE_EMBEDDED { | 2292 class EnsureSpace BASE_EMBEDDED { |
2293 public: | 2293 public: |
2294 explicit EnsureSpace(Assembler* assembler) { | 2294 explicit EnsureSpace(Assembler* assembler) { |
2295 assembler->CheckBufferSpace(); | 2295 assembler->CheckBufferSpace(); |
2296 } | 2296 } |
2297 }; | 2297 }; |
2298 | 2298 |
2299 } } // namespace v8::internal | 2299 } } // namespace v8::internal |
2300 | 2300 |
2301 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ | 2301 #endif // V8_ARM64_ASSEMBLER_ARM64_H_ |
OLD | NEW |